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 }); } }
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; } }
public static void LaunchGmail() { AndroidAppLauncher.LaunchGmail("", "", ""); }
public static void LaunchFB() { AndroidAppLauncher.LaunchFB(AndroidAppLauncher.FBMode.PROFILE, ""); }
public static void LaunchSettings() { AndroidAppLauncher.LaunchSettings(AndroidAppLauncher.SettingMode.DEFAULT); }
public static void LaunchDialPad() { AndroidAppLauncher.LaunchDialPad(""); }
public static void LaunchSMS() { AndroidAppLauncher.LaunchSMS("", ""); }
public static void LaunchPlayStore() { AndroidAppLauncher.LaunchPlayStore(""); }
public static void LaunchSkype() { AndroidAppLauncher.LaunchSkype(""); }