示例#1
0
        public static bool UPvr_SetMonoPresentation()
        {
            bool value = false;

#if ANDROID_DEVICE
            value = System.UPvr_CallMethod(UPvr_GetCurrentActivity(), "Pvr_setMonoPresentation");
#endif
            return(value);
        }
        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);
        }
        public static void UPvr_ResetAllKeyToDefault(Action <bool> callback)
        {
#if ANDROID_DEVICE
            if (callback != null)
            {
                BoolCallback = callback;
            }
            System.UPvr_CallMethod(tobHelper, "pbsResetAllKeyToDefault", null);
#endif
        }
        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
        }
        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
        }
        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
        }
        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
        }
        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
        }
        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
        }
        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
        }
        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
        }
        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);
        }
        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
        }
        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
        }
        public static void UPvr_UnBindToBService()
        {
#if ANDROID_DEVICE
            System.UPvr_CallMethod(tobHelper, "unBindTobService", currentActivity);
#endif
        }
        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
        }
        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
        }