Example #1
0
 public static void GetPermission(params string[] permissions)
 {
     if (permission == null)
     {
         permission = new AndroidJavaClass("com.unity.dynamicpermissiongetter.DynamicPermission");
     }
     if (permission != null)
     {
         permission.CallStatic("Get", "mark", ActivityGeter.GetActivity(), permissions);
     }
 }
Example #2
0
        void Init()
        {
#if UNITY_ANDROID
            AndroidJavaClass init = new AndroidJavaClass("com.unity.ttsdk.AdInit");
            var tp = AScriptableObject.Get <TPPama>();
            init.CallStatic("Init", "mark", ActivityGeter.GetActivity(), tp.appid, "testname", tp.isDebug, tp.enableManualAuthorization, new TTIniterCalBack
            {
                back = (v) =>
                {
                    onInited?.Invoke(v);
                }
            });
#endif
        }