Exemplo n.º 1
0
    private void Awake()
    {
        #region Accessibility

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IsAssistiveTouchRunning",
            method = () => Accessibility.IOSUIAccessibilityIsAssistiveTouchRunning().ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IsVoiceOverRunning",
            method = () => Accessibility.IOSUIAccessibilityIsVoiceOverRunning().ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IsSwitchControlRunning",
            method = () => Accessibility.IOSUIAccessibilityIsSwitchControlRunning().ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IsShakeToUndoEnabled",
            method = () => Accessibility.IOSUIAccessibilityIsShakeToUndoEnabled().ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IsClosedCaptioningEnabled",
            method = () => Accessibility.IOSUIAccessibilityIsClosedCaptioningEnabled().ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IsBoldTextEnabled",
            method = () => Accessibility.IOSUIAccessibilityIsBoldTextEnabled().ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "DarkerSystemColorsEnabled",
            method = () => Accessibility.IOSUIAccessibilityDarkerSystemColorsEnabled().ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IsGrayscaleEnabled",
            method = () => Accessibility.IOSUIAccessibilityIsGrayscaleEnabled().ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IsGuidedAccessEnabled",
            method = () => Accessibility.IOSUIAccessibilityIsGuidedAccessEnabled().ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IsInvertColorsEnabled",
            method = () => Accessibility.IOSUIAccessibilityIsInvertColorsEnabled().ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IsMonoAudioEnabled",
            method = () => Accessibility.IOSUIAccessibilityIsMonoAudioEnabled().ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IsReduceMotionEnabled",
            method = () => Accessibility.IOSUIAccessibilityIsReduceMotionEnabled().ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IsReduceTransparencyEnabled",
            method = () => Accessibility.IOSUIAccessibilityIsReduceTransparencyEnabled().ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IsSpeakScreenEnabled",
            method = () => Accessibility.IOSUIAccessibilityIsSpeakScreenEnabled().ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IsSpeakSelectionEnabled",
            method = () => Accessibility.IOSUIAccessibilityIsSpeakSelectionEnabled().ToString()
        });

        #endregion

        #region Permission

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "PermissionCameraOK",
            method = () => Permission.IOSPermissionCameraOK().ToString()
        });

        #endregion

        #region Settings

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IOSIsLowPowerModeEnabled",
            method = () => Settings.IOSIsLowPowerModeEnabled().ToString()
        });

        #endregion

        #region View

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IOSSafeAreaInsets (top)",
            method = () => View.IOSSafeAreaInsets().top.ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IOSSafeAreaInsets (left)",
            method = () => View.IOSSafeAreaInsets().left.ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IOSSafeAreaInsets (right)",
            method = () => View.IOSSafeAreaInsets().right.ToString()
        });

        iosBridgeMethods.Add(new iOSBridgeMethods
        {
            label  = "IOSSafeAreaInsets (bottom)",
            method = () => View.IOSSafeAreaInsets().bottom.ToString()
        });

        #endregion
    }