Platform

This interface provides information about the OS or runtime platform on which the app is running.

Types

type PlatformType = 'web' | 'ios' | 'android' | 'windows';

Methods

// Returns the platform type
getType(): Types.PlatformType;

// Returns the value in `specifics` for the current platform type.
select<T>(specifics: { [ platform in Types.PlatformType | 'default' ]?: T }): T | undefined;