openApps

fun openApps(context: Context, apps: List<App>, buttonContainer: ConstraintLayout, theme: Theme = Theme.LIGHT, bottomMargin: Float = 16f, callback: AppCallbackImpl = defaultAppCallback)

Adds an AppDrawer to the parent view buttonContainer for each app in apps list. Clicking on the AppDrawer opens the AppActivity and shows the App.

Parameters

context

Context which should be used to start the AppActivity.

theme

The Theme of the AppDrawer.

bottomMargin

The margin with which the AppDrawers should be drawn to the bottom edge.

callback

Via this callback the client app can subscribe to certain app events.