Function init

Source
pub fn init(app: AndroidApp) -> Result<(), SetPlatformError>
Available on Android and (crate features backend-android-activity-05 or backend-android-activity-06) only.
Expand description

Initializes the Android backend.

Note: This function is only available on Android with the “backend-android-activity-06” feature

This function must be called from the android_main function before any call to Slint that needs a backend.

See the module documentation for an example on how to create Android application.

See also init_with_event_listener