コード例 #1
0
ファイル: AppLauncher.cs プロジェクト: Team-Panda/GameJam
 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
             });
     }
 }
コード例 #2
0
ファイル: AppLauncher.cs プロジェクト: Team-Panda/GameJam
 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;
     }
 }
コード例 #3
0
 public static void LaunchGmail()
 {
     AndroidAppLauncher.LaunchGmail("", "", "");
 }
コード例 #4
0
 public static void LaunchFB()
 {
     AndroidAppLauncher.LaunchFB(AndroidAppLauncher.FBMode.PROFILE, "");
 }
コード例 #5
0
 public static void LaunchSettings()
 {
     AndroidAppLauncher.LaunchSettings(AndroidAppLauncher.SettingMode.DEFAULT);
 }
コード例 #6
0
 public static void LaunchDialPad()
 {
     AndroidAppLauncher.LaunchDialPad("");
 }
コード例 #7
0
 public static void LaunchSMS()
 {
     AndroidAppLauncher.LaunchSMS("", "");
 }
コード例 #8
0
 public static void LaunchPlayStore()
 {
     AndroidAppLauncher.LaunchPlayStore("");
 }
コード例 #9
0
 public static void LaunchSkype()
 {
     AndroidAppLauncher.LaunchSkype("");
 }