コード例 #1
0
        public static bool UPvr_SetMonoPresentation()
        {
            bool value = false;

#if ANDROID_DEVICE
            value = System.UPvr_CallMethod(UPvr_GetCurrentActivity(), "Pvr_setMonoPresentation");
#endif
            return(value);
        }
コード例 #2
0
        public static string UPvr_StateGetDeviceInfo(PBS_SystemInfoEnum type)
        {
            string result = "";

#if ANDROID_DEVICE
            System.UPvr_CallMethod <string>(ref result, tobHelper, "pbsStateGetDeviceInfo", GetEnumType(type), 0);
#endif
            return(result);
        }
コード例 #3
0
        public static bool UPvr_GetMainActivityPauseStatus()
        {
            bool ret     = false;
            bool isPause = false;

#if ANDROID_DEVICE
            ret = System.UPvr_CallMethod <bool>(ref isPause, UPvr_GetCurrentActivity(), "Pvr_getMainActivityPauseStatus");
#endif
            return(ret && isPause);
        }
コード例 #4
0
        public static void UPvr_ResetAllKeyToDefault(Action <bool> callback)
        {
#if ANDROID_DEVICE
            if (callback != null)
            {
                BoolCallback = callback;
            }
            System.UPvr_CallMethod(tobHelper, "pbsResetAllKeyToDefault", null);
#endif
        }
コード例 #5
0
        public static void UPvr_WriteConfigFileToDataLocal(string path, string content, Action <bool> callback)
        {
#if ANDROID_DEVICE
            if (callback != null)
            {
                BoolCallback = callback;
            }
            System.UPvr_CallMethod(tobHelper, "pbsWriteConfigFileToDataLocal", path, content, null);
#endif
        }
コード例 #6
0
        public static void UPvr_ControlSetDeviceAction(PBS_DeviceControlEnum deviceControl, Action <int> callback)
        {
#if ANDROID_DEVICE
            if (callback != null)
            {
                IntCallback = callback;
            }
            System.UPvr_CallMethod(tobHelper, "pbsControlSetDeviceAction", GetEnumType(deviceControl), null);
#endif
        }
コード例 #7
0
        public static void UPvr_ControlAPPManger(PBS_PackageControlEnum packageControl, string path, Action <int> callback)
        {
#if ANDROID_DEVICE
            if (callback != null)
            {
                IntCallback = callback;
            }
            System.UPvr_CallMethod(tobHelper, "pbsControlAPPManger", GetEnumType(packageControl), path, 0, null);
#endif
        }
コード例 #8
0
        public static void UPvr_PropertyDisablePowerKey(bool isSingleTap, bool enable, Action <int> callback)
        {
#if ANDROID_DEVICE
            if (callback != null)
            {
                IntCallback = callback;
            }
            System.UPvr_CallMethod(tobHelper, "pbsPropertyDisablePowerKey", isSingleTap, enable, null);
#endif
        }
コード例 #9
0
        public static void UPvr_PropertySetScreenOffDelay(PBS_ScreenOffDelayTimeEnum timeEnum, Action <int> callback)
        {
#if ANDROID_DEVICE
            if (callback != null)
            {
                IntCallback = callback;
            }
            System.UPvr_CallMethod(tobHelper, "pbsPropertySetScreenOffDelay", GetEnumType(timeEnum), null);
#endif
        }
コード例 #10
0
        public static void UPvr_PropertySetHomeKey(PBS_HomeEventEnum eventEnum, PBS_HomeFunctionEnum function, Action <bool> callback)
        {
#if ANDROID_DEVICE
            if (callback != null)
            {
                BoolCallback = callback;
            }
            System.UPvr_CallMethod(tobHelper, "pbsPropertySetHomeKey", GetEnumType(eventEnum), GetEnumType(function), null);
#endif
        }
コード例 #11
0
        public static void UPvr_PropertySetHomeKeyAll(PBS_HomeEventEnum eventEnum, PBS_HomeFunctionEnum function, int timesetup, string pkg, string className, Action <bool> callback)
        {
#if ANDROID_DEVICE
            if (callback != null)
            {
                BoolCallback = callback;
            }
            System.UPvr_CallMethod(tobHelper, "pbsPropertySetHomeKeyAll", GetEnumType(eventEnum), GetEnumType(function), timesetup, pkg, className, null);
#endif
        }
コード例 #12
0
        public static void UPvr_ControlSetAutoConnectWIFI(string ssid, string pwd, Action <bool> callback)
        {
#if ANDROID_DEVICE
            if (callback != null)
            {
                BoolCallback = callback;
            }
            System.UPvr_CallMethod(tobHelper, "pbsControlSetAutoConnectWIFI", ssid, pwd, 0, null);
#endif
        }
コード例 #13
0
        public static void UPvr_ControlClearAutoConnectWIFI(Action <bool> callback)
        {
#if ANDROID_DEVICE
            if (callback != null)
            {
                BoolCallback = callback;
            }
            System.UPvr_CallMethod(tobHelper, "pbsControlClearAutoConnectWIFI", null);
#endif
        }
コード例 #14
0
        public static bool UPvr_IsPresentationExisted()
        {
            bool value  = false;
            bool result = false;

#if ANDROID_DEVICE
            value = System.UPvr_CallMethod <bool>(ref result, UPvr_GetCurrentActivity(), "Pvr_isPresentationExisted");
#endif
            return(value && result);
        }
コード例 #15
0
        public static void UPvr_PropertySetSleepDelay(PBS_SleepDelayTimeEnum timeEnum)
        {
#if ANDROID_DEVICE
            System.UPvr_CallMethod(tobHelper, "pbsPropertySetSleepDelay", GetEnumType(timeEnum));
#endif
        }
コード例 #16
0
        public static void UPvr_DisableBackKey()
        {
#if ANDROID_DEVICE
            System.UPvr_CallMethod(tobHelper, "pbsDisableBackKey");
#endif
        }
コード例 #17
0
        public static void UPvr_SwitchSystemFunction(PBS_SystemFunctionSwitchEnum systemFunction, PBS_SwitchEnum switchEnum)
        {
#if ANDROID_DEVICE
            System.UPvr_CallMethod(tobHelper, "pbsSwitchSystemFunction", GetEnumType(systemFunction), GetEnumType(switchEnum), 0);
#endif
        }
コード例 #18
0
        public static void UPvr_ScreenOff()
        {
#if ANDROID_DEVICE
            System.UPvr_CallMethod(tobHelper, "pbsScreenOff");
#endif
        }
コード例 #19
0
        public static void UPvr_UnBindToBService()
        {
#if ANDROID_DEVICE
            System.UPvr_CallMethod(tobHelper, "unBindTobService", currentActivity);
#endif
        }
コード例 #20
0
        public static void UPvr_SetUnityObjectName(string obj)
        {
#if ANDROID_DEVICE
            System.UPvr_CallMethod(tobHelper, "setUnityObjectName", obj);
#endif
        }
コード例 #21
0
        public static void UPvr_ReleaseWakeLock()
        {
#if ANDROID_DEVICE
            System.UPvr_CallMethod(tobHelper, "pbsReleaseWakeLock");
#endif
        }
コード例 #22
0
        public static void UPvr_SwitchSetUsbConfigurationOption(PBS_USBConfigModeEnum uSBConfigModeEnum)
        {
#if ANDROID_DEVICE
            System.UPvr_CallMethod(tobHelper, "pbsSwitchSetUsbConfigurationOption", GetEnumType(uSBConfigModeEnum), 0);
#endif
        }
コード例 #23
0
        public static void UPvr_EnableVolumeKey()
        {
#if ANDROID_DEVICE
            System.UPvr_CallMethod(tobHelper, "pbsEnableVolumeKey");
#endif
        }