Ejemplo n.º 1
0
 public static void LaunchSettings(AndroidAppLauncher.SettingMode mode)
 {
     using (AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) {
         using (AndroidJavaObject androidJavaObject = (AndroidJavaObject) ((AndroidJavaObject) androidJavaClass).GetStatic<AndroidJavaObject>("currentActivity"))
             ((AndroidJavaObject) new AndroidJavaClass("de.innoactive.applauncher.AppLaunch")).CallStatic("LaunchSettings", new object[2]
                                                                                                            {
                 (object) androidJavaObject,
                 (object) mode
             });
     }
 }
Ejemplo n.º 2
0
 public static void LaunchFB(AndroidAppLauncher.FBMode mode, string id)
 {
     switch (mode)
     {
     case AndroidAppLauncher.FBMode.FEED:
         Application.OpenURL("fb://feed/" + id);
         break;
     case AndroidAppLauncher.FBMode.PROFILE:
         Application.OpenURL("fb://profile/" + id);
         break;
     case AndroidAppLauncher.FBMode.PAGE:
         Application.OpenURL("fb://page/" + id);
         break;
     case AndroidAppLauncher.FBMode.PLACE:
         Application.OpenURL("fb://placefw?pid=" + id);
         break;
     case AndroidAppLauncher.FBMode.GROUP:
         Application.OpenURL("fb://groups");
         break;
     case AndroidAppLauncher.FBMode.SEARCH:
         Application.OpenURL("fb://search");
         break;
     case AndroidAppLauncher.FBMode.FRIENDS:
         Application.OpenURL("fb://friends");
         break;
     case AndroidAppLauncher.FBMode.PAGES:
         Application.OpenURL("fb://pages");
         break;
     case AndroidAppLauncher.FBMode.MESSAGING:
         Application.OpenURL("fb://messaging");
         break;
     case AndroidAppLauncher.FBMode.ONLINE:
         Application.OpenURL("fb://online");
         break;
     case AndroidAppLauncher.FBMode.REQUESTS:
         Application.OpenURL("fb://requests");
         break;
     case AndroidAppLauncher.FBMode.EVENTS:
         Application.OpenURL("fb://events");
         break;
     case AndroidAppLauncher.FBMode.PLACES:
         Application.OpenURL("fb://places");
         break;
     case AndroidAppLauncher.FBMode.BIRTHDAYS:
         Application.OpenURL("fb://birthdays");
         break;
     case AndroidAppLauncher.FBMode.NOTIFICATIONS:
         Application.OpenURL("fb://notifications");
         break;
     case AndroidAppLauncher.FBMode.ALBUMS:
         Application.OpenURL("fb://albums");
         break;
     }
 }
Ejemplo n.º 3
0
 public static void LaunchGmail()
 {
     AndroidAppLauncher.LaunchGmail("", "", "");
 }
Ejemplo n.º 4
0
 public static void LaunchFB()
 {
     AndroidAppLauncher.LaunchFB(AndroidAppLauncher.FBMode.PROFILE, "");
 }
Ejemplo n.º 5
0
 public static void LaunchSettings()
 {
     AndroidAppLauncher.LaunchSettings(AndroidAppLauncher.SettingMode.DEFAULT);
 }
Ejemplo n.º 6
0
 public static void LaunchDialPad()
 {
     AndroidAppLauncher.LaunchDialPad("");
 }
Ejemplo n.º 7
0
 public static void LaunchSMS()
 {
     AndroidAppLauncher.LaunchSMS("", "");
 }
Ejemplo n.º 8
0
 public static void LaunchPlayStore()
 {
     AndroidAppLauncher.LaunchPlayStore("");
 }
Ejemplo n.º 9
0
 public static void LaunchSkype()
 {
     AndroidAppLauncher.LaunchSkype("");
 }