public static void CheckSDKFeature() { if (GameJoySDK.mQMiObj == null) { GameJoySDK.mQMiObj = GameJoySDK.mQMiObjJavaClass(); } if (GameJoySDK.mQMiObj != null) { GameJoySDK.playerActivityContext = GameJoySDK.getActivityContext(); if (GameJoySDK.playerActivityContext == null) { GameJoySDK.Log("checkSDKFeature recordplugin get context fail"); return; } GameJoySDK.CheckSDKFeatureCallback checkSDKFeatureCallback = new GameJoySDK.CheckSDKFeatureCallback(); GameJoySDK.mQMiObj.CallStatic("checkSDKFeature", new object[] { GameJoySDK.playerActivityContext, checkSDKFeatureCallback }); } else { GameJoySDK.Log("checkSDKFeature get mQMiObj fail"); } }
public void StartQMi(float x, float y) { if (GameJoySDK.mQMiObj == null) { GameJoySDK.mQMiObj = GameJoySDK.mQMiObjJavaClass(); } if (GameJoySDK.mQMiObj != null) { if (GameJoySDK.playerActivityContext == null) { GameJoySDK.playerActivityContext = GameJoySDK.getActivityContext(); } if (GameJoySDK.playerActivityContext != null) { string text = "Unity3D_" + Application.unityVersion; GameJoySDK.mQMiObj.CallStatic("showQMi", new object[] { GameJoySDK.playerActivityContext, text, x, y }); } } }
public static bool checkFloatWindowPermission() { if (GameJoySDK.mQMiObj == null) { GameJoySDK.mQMiObj = GameJoySDK.mQMiObjJavaClass(); } if (GameJoySDK.mQMiObj != null) { if (GameJoySDK.playerActivityContext == null) { GameJoySDK.playerActivityContext = GameJoySDK.getActivityContext(); } if (GameJoySDK.playerActivityContext != null) { return(GameJoySDK.mQMiObj.CallStatic <bool>("checkFloatWindowPermission", new object[] { GameJoySDK.playerActivityContext })); } } else { GameJoySDK.Log("checkFloatWindowPermission get mQMiObj fail"); } return(false); }
public static void CheckSupportRecord() { if (GameJoySDK.mQMiObj == null) { GameJoySDK.mQMiObj = GameJoySDK.mQMiObjJavaClass(); } if (GameJoySDK.mQMiObj != null) { GameJoySDK.playerActivityContext = GameJoySDK.getActivityContext(); if (GameJoySDK.playerActivityContext == null) { GameJoySDK.Log("isSupportRecord recordplugin get context fail"); return; } GameJoySDK.RecordEnableCallback recordEnableCallback = new GameJoySDK.RecordEnableCallback(); GameJoySDK.mQMiObj.CallStatic("isSupportRecord", new object[] { GameJoySDK.playerActivityContext, recordEnableCallback }); } else { GameJoySDK.Log("isSupportRecord get mQMiObj fail"); } }
public void initQMi() { if (GameJoySDK.mQMiObj == null) { GameJoySDK.mQMiObj = GameJoySDK.mQMiObjJavaClass(); } if (GameJoySDK.mQMiObj != null) { GameJoySDK.playerActivityContext = GameJoySDK.getActivityContext(); if (GameJoySDK.playerActivityContext == null) { GameJoySDK.Log("startqmi get context failed"); return; } } else { GameJoySDK.Log("GameRecorder StartQMi mqmiobj = null"); } }
public void showVideoListDialog() { if (GameJoySDK.mQMiObj == null) { GameJoySDK.mQMiObj = GameJoySDK.mQMiObjJavaClass(); } if (GameJoySDK.mQMiObj != null) { if (GameJoySDK.playerActivityContext == null) { GameJoySDK.playerActivityContext = GameJoySDK.getActivityContext(); } if (GameJoySDK.playerActivityContext != null) { GameJoySDK.mQMiObj.CallStatic("showVideoListDialog", new object[] { GameJoySDK.playerActivityContext }); } } }
public void startMomentRecording() { if (GameJoySDK.mQMiObj == null) { GameJoySDK.mQMiObj = GameJoySDK.mQMiObjJavaClass(); } if (GameJoySDK.mQMiObj != null) { if (GameJoySDK.playerActivityContext == null) { GameJoySDK.playerActivityContext = GameJoySDK.getActivityContext(); } if (GameJoySDK.playerActivityContext != null) { string text = "Unity3D_" + Application.unityVersion; GameJoySDK.mQMiObj.CallStatic("startMomentRecording", new object[] { GameJoySDK.playerActivityContext, text }); } } }
public void HideQMi() { if (GameJoySDK.mQMiObj == null) { GameJoySDK.mQMiObj = GameJoySDK.mQMiObjJavaClass(); } if (GameJoySDK.mQMiObj != null) { GameJoySDK.playerActivityContext = GameJoySDK.getActivityContext(); if (GameJoySDK.playerActivityContext == null) { GameJoySDK.Log("hide qmi get context fail"); return; } GameJoySDK.mQMiObj.CallStatic("hideQMi", new object[] { GameJoySDK.playerActivityContext }); } else { GameJoySDK.Log("HideQMi get mQMiObj fail"); } }
public void InitRecordPlugin() { if (GameJoySDK.mQMiObj == null) { GameJoySDK.mQMiObj = GameJoySDK.mQMiObjJavaClass(); } if (GameJoySDK.mQMiObj != null) { GameJoySDK.playerActivityContext = GameJoySDK.getActivityContext(); if (GameJoySDK.playerActivityContext == null) { GameJoySDK.Log("init recordplugin get context fail"); return; } GameJoySDK.mQMiObj.CallStatic("initQMi", new object[] { GameJoySDK.playerActivityContext }); } else { GameJoySDK.Log("InitRecordPlugin get mQMiObj fail"); } }
public void ScollToSide() { if (GameJoySDK.mQMiObj == null) { GameJoySDK.mQMiObj = GameJoySDK.mQMiObjJavaClass(); } if (GameJoySDK.mQMiObj != null) { GameJoySDK.playerActivityContext = GameJoySDK.getActivityContext(); if (GameJoySDK.playerActivityContext == null) { GameJoySDK.Log("ScollToSide get context fail"); return; } GameJoySDK.mQMiObj.CallStatic("scollToSide", new object[] { GameJoySDK.playerActivityContext }); } else { GameJoySDK.Log("ScollToSide get mQMiObj fail"); } }