public static void OpenSettingView(SettingViewAction action)
 {
     using (AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
     {
         using (AndroidJavaObject androidJavaObject = new AndroidJavaObject("android.content.Intent", new object[0]))
         {
             androidJavaObject.Call <AndroidJavaObject>("setAction", new object[]
             {
                 NpSettingAndroid.GetActionPackage(action)
             });
             androidJavaClass.GetStatic <AndroidJavaObject>("currentActivity").Call("startActivity", new object[]
             {
                 androidJavaObject
             });
         }
     }
 }
Esempio n. 2
0
 public static void OpenAppSettingView(string package)
 {
     NpSettingAndroid.OpenAppSettingView(package);
 }
Esempio n. 3
0
 public static void OpenSettingView(SettingViewAction action)
 {
     NpSettingAndroid.OpenSettingView(action);
 }