Skip to main content

create_showcase_app_for_platform

Function create_showcase_app_for_platform 

Source
pub fn create_showcase_app_for_platform(
    platform: PlatformKind,
    mode: RenderMode,
) -> Result<(App, ShowcaseState), PlatformError>
Expand description

Builds an App and reactive ShowcaseState reporting a specific host PlatformKind (for native mobile hosts).

§Arguments

  • PlatformKind - Active native host platform identity (e.g. PlatformKind::Android, PlatformKind::Ios).
  • RenderMode - Initial rendering pipeline mode.

§Returns

  • Result<(App, ShowcaseState), PlatformError> - Initialized showcase app and state.