Platform

Diese Schnittstelle bietet Informationen über das Betriebssystem oder die Laufzeitplattform, auf der die App ausgeführt wird.

Typen

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

Methoden

// 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;