The interface every App must implement.
val appId: String
The unique app id.
val keywords: List<String>?
List of keywords for Next Service Predictions.
fun initialize(listener: AppListener, configuration: AppConfiguration)
Invoked when the app is registered.
Dispose the app and free resources until (if) initialize is called again.
fun open(parent: ViewGroup, theme: AppTheme, state: AppInputState): View?
Invoked when the app is requested to be opened.
Invoked when the app is requested to be closed.
fun onConfigurationChanged(configuration: AppConfiguration)
Invoked when the app configuration changed.
fun onThemeChanged(theme: AppTheme)
Invoked when the app theme has changed.
fun onThemeUpdated(theme: AppTheme)
Invoked when the app theme has updated a dynamic value, like cycling background colors.
fun onInputStateChanged(state: AppInputState)
Invoked when the app input state has changed.
fun appIcon(context: Context): Drawable?
The icon of the app, in either circular or square shape
If something needs to be added or if you find an error in our documentation, please let us know either on our GitHub or Discord.
Last updated on June 16, 2023