Spokestack Tray Factory
A factory class used to instantiate the Spokestack Tray fragment with custom configuration.
Use when adding the Tray to an Activity
like the following:
override fun onCreate(savedInstanceState: Bundle?) {
val config = TrayConfig.Builder()
// builder setup...
.build()
supportFragmentManager.fragmentFactory = SpokestackTrayFactory(config)
// note that the factory is instantiated and set on the manager BEFORE calling
// `super.onCreate()`
super.onCreate(savedInstanceState)
// you'll probably also want an instance of the tray around to use in your `Activity`:
val tray = SpokestackTray.getInstance(config)
}
Constructors
SpokestackTrayFactory
Link copied to clipboard
Types
Functions
instantiate
Link copied to clipboard
open override fun instantiate(classLoader: ClassLoader, className: String): Fragment
Content copied to clipboard