Racehorse
    Preparing search index...

    Interface DeviceManager

    interface DeviceManager {
        getDeviceInfo(): DeviceInfo;
        getPreferredLocales(): string[];
        getWindowInsets(typeMask?: number): Rect;
        pickLocale(supportedLocales: string[], defaultLocale: string): string;
    }
    Index

    Methods

    • Returns the array of preferred locales.

      Returns string[]

    • Get the rect that describes the window insets that overlap with system UI.

      Parameters

      • OptionaltypeMask: number

        Bit mask of InsetTypes to query the insets for. By default, display cutout, navigation and status bars are included.

      Returns Rect

    • Returns a locale from supportedLocales that best matches one of preferred locales, or returns a defaultLocale.

      Parameters

      • supportedLocales: string[]

        The array of locales that your application supports.

      • defaultLocale: string

        The default locale that is returned if there's no matching locale among preferred.

      Returns string