Ejemplo n.º 1
0
        public void OnSendEmailClick()
        {
            var recipients    = new[] { "*****@*****.**", "*****@*****.**" };
            var ccRecipients  = new[] { "*****@*****.**" };
            var bccRecipients = new[] { "*****@*****.**", "*****@*****.**" };

            AGShare.SendEmail(recipients, "subj", "body", image, withChooser, cc: ccRecipients, bcc: bccRecipients);
        }
Ejemplo n.º 2
0
        public void OnShareVideo()
        {
            // NOTE: In order to test this method video file must exist on file system.
            // To test this method you put 'xxx.mov' video into your downloads folder
            const string videoFileName = "/xxx.mov";
            var          filePath      = Path.Combine(AGEnvironment.ExternalStorageDirectoryPath, AGEnvironment.DirectoryDownloads) + videoFileName;

            Debug.Log("Sharing video: " + filePath + ", file exists?: " + File.Exists(filePath));
            AGShare.ShareVideo(filePath, "My Video Title", "Upload Video");
        }
Ejemplo n.º 3
0
    public void Share()
    {
        //Initialise the list of dictionaries from CSV file
        List <Dictionary <string, object> > data = CSVReader.Read(filename);

        for (var i = 0; i < data.Count; i++)
        {
            //Check for a BSSID match
            if (data[i].ContainsValue(bssid))
            {
                //Open Android Share dialogue, and share the matched room name
                AGShare.ShareText("UCLocation", "Hey there, I'm in " + Convert.ToString(data[i]["room"]));
            }
            else
            {
                AGUIMisc.ShowToast("Unable to detect MAC address.", AGUIMisc.ToastLength.Long);
                SFX.toast = true;
            }
        }
    }
Ejemplo n.º 4
0
 // FB Messenger
 public void OnSendFacebookMessageText()
 {
     AGShare.SendFacebookMessageText(message);
 }
Ejemplo n.º 5
0
 public void OnShareScreenshot()
 {
     AGShare.ShareScreenshot();
 }
Ejemplo n.º 6
0
 public void OnTweetClick()
 {
     AGShare.Tweet(message, image);
 }
 public void OnSendSmsSilentlyClick()
 {
     AGPermissions.ExecuteIfHasPermission(AGPermissions.SEND_SMS, () => { AGShare.SendSmsSilently("123123123", "Silent Message"); },
                                          () => ExampleUtil.ShowPermissionErrorToast(AGPermissions.SEND_SMS));
 }
Ejemplo n.º 8
0
 // Viber
 public void OnSendViberTextMessage()
 {
     AGShare.SendViberTextMessage(message);
 }
Ejemplo n.º 9
0
 // Telegram
 public void OnSendTelegramTextMessage()
 {
     AGShare.SendTelegramTextMessage(message);
 }
Ejemplo n.º 10
0
 public void OnSendWhatsAppImageMessage()
 {
     AGShare.SendWhatsAppImageMessage(image);
 }
Ejemplo n.º 11
0
 public void OnSendSnapChatImageMessage()
 {
     AGShare.SendSnapChatImageMessage(image);
 }
Ejemplo n.º 12
0
 // SnapChat
 public void OnSendSnapChatTextMessage()
 {
     AGShare.SendSnapChatTextMessage(message);
 }
Ejemplo n.º 13
0
 public void OnTweetClick()
 {
     AGShare.Tweet("hello! I am tweeting like a boss!", image);
 }
Ejemplo n.º 14
0
        void Start()
        {
            SetupSharedPrefs();

            var builder = new StringBuilder();

            // Device info
            builder.AppendLine("ANDROID_ID? : " + AGDeviceInfo.GetAndroidId());

            builder.AppendLine("----------- TELEPHONY------------");
            builder.AppendLine("Telephony device id? : " + AGTelephony.TelephonyDeviceId);
            builder.AppendLine("Sim serial number? : " + AGTelephony.TelephonySimSerialNumber);
            builder.AppendLine("Network country ISO? : " + AGTelephony.NetworkCountryIso);

            builder.AppendLine("----------- NETWORK------------");
            builder.AppendLine("Internet connected? : " + AGNetwork.IsInternetAvailable());
            builder.AppendLine("Wifi enabled? : " + AGNetwork.IsWifiEnabled());
            builder.AppendLine("Wifi connected? : " + AGNetwork.IsWifiConnected());
            builder.AppendLine("Wifi signal level? : " + AGNetwork.GetWifiSignalLevel() + "/100");
            builder.AppendLine("Wifi info? : " + AGNetwork.GetWifiConnectionInfo());

            builder.AppendLine("Mobile connected? : " + AGNetwork.IsMobileConnected());

            builder.AppendLine("----------- Build class------------");
            builder.AppendLine("DEVICE : " + AGDeviceInfo.DEVICE);
            builder.AppendLine("MODEL : " + AGDeviceInfo.MODEL);
            builder.AppendLine("PRODUCT : " + AGDeviceInfo.PRODUCT);
            builder.AppendLine("MANUFACTURER : " + AGDeviceInfo.MANUFACTURER);

            // Build.VERSION
            builder.AppendLine("-----------Build.VERSION class------------");
            builder.AppendLine("BASE_OS : " + AGDeviceInfo.BASE_OS);
            builder.AppendLine("CODENAME : " + AGDeviceInfo.CODENAME);
            builder.AppendLine("INCREMENTAL : " + AGDeviceInfo.INCREMENTAL);
            builder.AppendLine("PREVIEW_SDK_INT : " + AGDeviceInfo.PREVIEW_SDK_INT);
            builder.AppendLine("RELEASE : " + AGDeviceInfo.RELEASE);
            builder.AppendLine("SDK_INT : " + AGDeviceInfo.SDK_INT);
            builder.AppendLine("SECURITY_PATCH : " + AGDeviceInfo.SECURITY_PATCH);
            builder.AppendLine("---------------------------");

            builder.AppendLine("Twitter installed? : " + AGShare.IsTwitterInstalled());
            builder.AppendLine("Has mail app? : " + AGShare.UserHasEmailApp());
            builder.AppendLine("Has sms app? : " + AGShare.UserHasSmsApp());
            builder.AppendLine("Has maps app? : " + AGMaps.UserHasMapsApp());
            builder.AppendLine("Has calendar app? : " + AGCalendar.UserHasCalendarApp());
            builder.AppendLine("Can show alarms? : " + AGAlarmClock.CanShowListOfAlarms());
            builder.AppendLine("Can set alarms? : " + AGAlarmClock.CanSetAlarm());
            builder.AppendLine("Can set timer? : " + AGAlarmClock.CanSetTimer());
            builder.AppendLine("Has timer app? : " + AGAlarmClock.UserHasTimerApp());
            builder.AppendLine("---------------------------");
            builder.AppendLine("Battery level? : " + AGBattery.GetBatteryChargeLevel());
            builder.AppendLine("Has vibrator? : " + AGVibrator.HasVibrator());
            builder.AppendLine("Has flashlight? : " + AGFlashLight.HasFlashlight());
            builder.AppendLine("GPS enabled? : " + AGGPS.IsGPSEnabled());
            builder.AppendLine("Package? : " + AGDeviceInfo.GetApplicationPackage());

            // Environment
            builder.AppendLine("-------------ENVIRONMENT DIRS-------------");
            builder.AppendLine("Alarms dir? : " + AGEnvironment.DirectoryAlarms);
            builder.AppendLine("DCIM dir? : " + AGEnvironment.DirectoryDCIM);
            builder.AppendLine("Documents dir? : " + AGEnvironment.DirectoryDocuments);
            builder.AppendLine("Downloads dir? : " + AGEnvironment.DirectoryDownloads);
            builder.AppendLine("Movies dir? : " + AGEnvironment.DirectoryMovies);
            builder.AppendLine("Music dir? : " + AGEnvironment.DirectoryMusic);
            builder.AppendLine("Notifications dir? : " + AGEnvironment.DirectoryNotifications);
            builder.AppendLine("Pictures dir? : " + AGEnvironment.DirectoryPictures);
            builder.AppendLine("Podcasts dir? : " + AGEnvironment.DirectoryPodcasts);
            builder.AppendLine("Ringtones dir? : " + AGEnvironment.DirectoryRingtones);

            builder.AppendLine("\n-------------ENVIRONMENT OTHER-------------");
            builder.AppendLine("Data dir? : " + AGEnvironment.DataDirectoryPath);
            builder.AppendLine("Root dir? : " + AGEnvironment.RootDirectoryPath);
            builder.AppendLine("Download/Cache dir? : " + AGEnvironment.DownloadCacheDirectoryPath);
            builder.AppendLine("External storage dir? : " + AGEnvironment.ExternalStorageDirectoryPath);
            builder.AppendLine("External storage state? : " + AGEnvironment.ExternalStorageState);
            builder.AppendLine("External storage removable? : " + AGEnvironment.IsExternalStorageRemovable);
            builder.AppendLine("External storage emulated? : " + AGEnvironment.IsExternalStorageEmulated);
            builder.AppendLine("Alarms full path? : " +
                               AGEnvironment.GetExternalStoragePublicDirectoryPath(AGEnvironment.DirectoryAlarms));

            builder.AppendLine("\n-------------Permissions-------------");
            builder.AppendLine("Has location permission? " +
                               AGPermissions.IsPermissionGranted(AGPermissions.ACCESS_FINE_LOCATION));
            builder.AppendLine("Has read contacts permission? " +
                               AGPermissions.IsPermissionGranted(AGPermissions.READ_CONTACTS));
            builder.AppendLine("Has access network state permission? " +
                               AGPermissions.IsPermissionGranted(AGPermissions.ACCESS_NETWORK_STATE));

            builder.AppendLine("\n-------------Location-------------");
            builder.AppendLine(TestDistanceInfo());
            builder.AppendLine("Last known location: " + AGGPS.GetLastKnownGPSLocation());
            builder.AppendLine("Has GPS?: " + AGGPS.DeviceHasGPS());

            builder.AppendLine("\n-------------Camera-------------");
            builder.AppendLine("Has camera? " + AGCamera.DeviceHasCamera());
            builder.AppendLine("Has autofocus? " + AGCamera.DeviceHasCameraWithAutoFocus());
            builder.AppendLine("Has flashlight? " + AGCamera.DeviceHasCameraWithFlashlight());
            builder.AppendLine("Has frontal camera? " + AGCamera.DeviceHasFrontalCamera());

            builder.AppendLine("\n-------------Shared Prefs-------------");
            builder.AppendLine("Get bool? " + AGSharedPrefs.GetBool(_sharedPrefsFileKey, BoolKey, true));
            builder.AppendLine("Get float? " + AGSharedPrefs.GetFloat(_sharedPrefsFileKey, FloatKey, float.MaxValue));
            builder.AppendLine("Get int? " + AGSharedPrefs.GetInt(_sharedPrefsFileKey, IntKey, int.MaxValue));
            builder.AppendLine("Get long? " + AGSharedPrefs.GetLong(_sharedPrefsFileKey, LongKey, long.MaxValue));
            builder.AppendLine("Get string? " + AGSharedPrefs.GetString(_sharedPrefsFileKey, StringKey, "default"));
            var allPrefs = AGSharedPrefs.GetAll(_sharedPrefsFileKey);

            foreach (var key in allPrefs.Keys)
            {
                Debug.Log(string.Format("{0} : {1}", key, allPrefs[key]));
            }

            builder.AppendLine("\n-------------Installed Apps-------------");
            foreach (var app in AGDeviceInfo.GetInstalledPackages().Take(10))
            {
                if (!string.IsNullOrEmpty(app.PackageName))
                {
                    builder.Append(app);
                    builder.Append(", ");
                }
            }

            infoText.text = builder.ToString();
        }
Ejemplo n.º 15
0
        void Start()
        {
            SetupSharedPrefs();

            var builder = new StringBuilder();

            // Device info
            builder.AppendLine("ANDROID_ID? : " + AGDeviceInfo.GetAndroidId());

            builder.AppendLine("----------- TELEPHONY------------");
            builder.AppendLine("Telephony device id? : " + AGTelephony.TelephonyDeviceId);
            builder.AppendLine("Sim state? : " + AGTelephony.SimState);
            if (AGTelephony.SimState == AGTelephony.SimStates.Ready)
            {
                builder.AppendLine("Sim serial number? : " + AGTelephony.TelephonySimSerialNumber);
            }
            builder.AppendLine("Network country ISO? : " + AGTelephony.NetworkCountryIso);
            builder.AppendLine("Cell info : ");
            foreach (var cell in AGTelephony.AllCellInfo)
            {
                builder.AppendLine(cell.ToString());
            }
            builder.AppendLine("Call state : " + AGTelephony.CallState);
            builder.AppendLine("Data activity : " + AGTelephony.DataActivity);
            builder.AppendLine("Data Network Type : " + AGTelephony.DataNetworkType);
            builder.AppendLine("Data State : " + AGTelephony.DataState);
#pragma warning disable 0618
            builder.AppendLine("Device Id : " + AGTelephony.DeviceId);
#pragma warning restore 0618
            builder.AppendLine("Device Software Version : " + AGTelephony.DeviceSoftwareVersion);
            builder.AppendLine("Forbidden PLMNs : " + AGTelephony.ForbiddenPlmns);
            builder.AppendLine("Group Id Level 1 : " + AGTelephony.GroupIdLevel1);
            builder.AppendLine("IMEI : " + AGTelephony.IMEI);
            builder.AppendLine("Line 1 Number : " + AGTelephony.Line1Number);
            builder.AppendLine("MEID : " + AGTelephony.MEID);
            builder.AppendLine("MMS user agent profile URL : " + AGTelephony.MmsUaProfUrl);
            builder.AppendLine("MMS user agent : " + AGTelephony.MmsUserAgent);
            builder.AppendLine("NAI : " + AGTelephony.Nai);
            builder.AppendLine("Network Operator : " + AGTelephony.NetworkOperator);
            builder.AppendLine("Network Operator Name : " + AGTelephony.NetworkOperatorName);
            builder.AppendLine("Network Specifier : " + AGTelephony.NetworkSpecifier);
            builder.AppendLine("Network Type : " + AGTelephony.NetworkType);
            builder.AppendLine("Phone Count : " + AGTelephony.PhoneCount);
            builder.AppendLine("Phone Type : " + AGTelephony.PhoneType);
            builder.AppendLine("Service State : " + AGTelephony.ServiceState);
            builder.AppendLine("Signal Strength : " + AGTelephony.SignalStrength);
            builder.AppendLine("Sim Carrier Id : " + AGTelephony.SimCarrierId);
            builder.AppendLine("Sim Carrier Id Name : " + AGTelephony.SimCarrierIdName);
            builder.AppendLine("Sim Country Iso : " + AGTelephony.SimCountryIso);
            builder.AppendLine("Sim Operator : " + AGTelephony.SimOperator);
            builder.AppendLine("Sim Operator Name : " + AGTelephony.SimOperatorName);
            builder.AppendLine("Sim Serial Number : " + AGTelephony.SimSerialNumber);
            builder.AppendLine("Subscriber Id : " + AGTelephony.SubscriberId);
            builder.AppendLine("Visual Voicemail Package Name : " + AGTelephony.VisualVoicemailPackageName);
            builder.AppendLine("Voice Mail Alpha Tag : " + AGTelephony.VoiceMailAlphaTag);
            builder.AppendLine("Voice Mail Number : " + AGTelephony.VoiceMailNumber);
            builder.AppendLine("Voice Network Type : " + AGTelephony.VoiceNetworkType);
            builder.AppendLine("Has Carrier Privileges? : " + AGTelephony.HasCarrierPrivileges);
            builder.AppendLine("Has Icc Card? : " + AGTelephony.HasIccCard);
            builder.AppendLine("Is Concurrent Voice And Data Supported? : " + AGTelephony.IsConcurrentVoiceAndDataSupported);
            builder.AppendLine("Is Data Enabled? : " + AGTelephony.IsDataEnabled);
            builder.AppendLine("Is Hearing Aid Compatibility Supported? : " + AGTelephony.IsHearingAidCompatibilitySupported);
            builder.AppendLine("Is Network Roaming? : " + AGTelephony.IsNetworkRoaming);
            builder.AppendLine("Is Sms Capable? : " + AGTelephony.IsSmsCapable);
#pragma warning disable 0618
            builder.AppendLine("Is Tty Mode Supported? : " + AGTelephony.IsTtyModeSupported);
#pragma warning restore 0618
            builder.AppendLine("Is Voice Capable? : " + AGTelephony.IsVoiceCapable);
            builder.AppendLine("Is World Phone? : " + AGTelephony.IsWorldPhone);

            builder.AppendLine("----------- NETWORK------------");
            builder.AppendLine("Internet connected? : " + AGNetwork.IsInternetAvailable());
            builder.AppendLine("Wifi enabled? : " + AGNetwork.IsWifiEnabled());
            builder.AppendLine("Wifi connected? : " + AGNetwork.IsWifiConnected());
            builder.AppendLine("Wifi signal level? : " + AGNetwork.GetWifiSignalLevel() + "/100");
            builder.AppendLine("Wifi info? : " + AGNetwork.GetWifiConnectionInfo());

//			builder.AppendLine("Ethernet mac address? : " + AGNetwork.EthernetMacAddress);

            builder.AppendLine("Mobile connected? : " + AGNetwork.IsMobileConnected());

            builder.AppendLine("----------- Build class------------");
            builder.AppendLine("DEVICE : " + AGDeviceInfo.DEVICE);
            builder.AppendLine("MODEL : " + AGDeviceInfo.MODEL);
            builder.AppendLine("PRODUCT : " + AGDeviceInfo.PRODUCT);
            builder.AppendLine("MANUFACTURER : " + AGDeviceInfo.MANUFACTURER);

            // Build.VERSION
            builder.AppendLine("-----------Build.VERSION class------------");
            builder.AppendLine("BASE_OS : " + AGDeviceInfo.BASE_OS);
            builder.AppendLine("CODENAME : " + AGDeviceInfo.CODENAME);
            builder.AppendLine("INCREMENTAL : " + AGDeviceInfo.INCREMENTAL);
            builder.AppendLine("PREVIEW_SDK_INT : " + AGDeviceInfo.PREVIEW_SDK_INT);
            builder.AppendLine("RELEASE : " + AGDeviceInfo.RELEASE);
            builder.AppendLine("SDK_INT : " + AGDeviceInfo.SDK_INT);
            builder.AppendLine("SECURITY_PATCH : " + AGDeviceInfo.SECURITY_PATCH);
            builder.AppendLine("---------------------------");

            builder.AppendLine("Twitter installed? : " + AGShare.IsTwitterInstalled());
            builder.AppendLine("Has mail app? : " + AGShare.UserHasEmailApp());
            builder.AppendLine("Has sms app? : " + AGShare.UserHasSmsApp());
            builder.AppendLine("Has maps app? : " + AGMaps.UserHasMapsApp());
            builder.AppendLine("Has calendar app? : " + AGCalendar.UserHasCalendarApp());
            builder.AppendLine("Can show alarms? : " + AGAlarmClock.CanShowListOfAlarms());
            builder.AppendLine("Can set alarms? : " + AGAlarmClock.CanSetAlarm());
            builder.AppendLine("Can set timer? : " + AGAlarmClock.CanSetTimer());
            builder.AppendLine("Has timer app? : " + AGAlarmClock.UserHasTimerApp());
            builder.AppendLine("---------------------------");

            builder.AppendLine("Has vibrator? : " + AGVibrator.HasVibrator());
            builder.AppendLine("Vibration effects supported?? : " + AGVibrator.AreVibrationEffectsSupported);
            builder.AppendLine("Has amplitude control? : " + AGVibrator.HasAmplitudeControl);
            builder.AppendLine("Has flashlight? : " + AGFlashLight.HasFlashlight());
            builder.AppendLine("GPS enabled? : " + AGGPS.IsGPSEnabled());
            builder.AppendLine("Package? : " + AGDeviceInfo.GetApplicationPackage());

            // Environment
            builder.AppendLine("-------------ENVIRONMENT DIRS-------------");
            builder.AppendLine("Alarms dir? : " + AGEnvironment.DirectoryAlarms);
            builder.AppendLine("DCIM dir? : " + AGEnvironment.DirectoryDCIM);
            builder.AppendLine("Documents dir? : " + AGEnvironment.DirectoryDocuments);
            builder.AppendLine("Downloads dir? : " + AGEnvironment.DirectoryDownloads);
            builder.AppendLine("Movies dir? : " + AGEnvironment.DirectoryMovies);
            builder.AppendLine("Music dir? : " + AGEnvironment.DirectoryMusic);
            builder.AppendLine("Notifications dir? : " + AGEnvironment.DirectoryNotifications);
            builder.AppendLine("Pictures dir? : " + AGEnvironment.DirectoryPictures);
            builder.AppendLine("Podcasts dir? : " + AGEnvironment.DirectoryPodcasts);
            builder.AppendLine("Ringtones dir? : " + AGEnvironment.DirectoryRingtones);

            builder.AppendLine("-------------OTHER DIRS-------------");
            builder.AppendLine("External cache dir? : " + AGFileUtils.ExternalCacheDirectory);
            builder.AppendLine("Cache dir? : " + AGFileUtils.CacheDirectory);
            builder.AppendLine("Code cache dir? : " + AGFileUtils.CodeCacheDirectory);
            builder.AppendLine("Data dir? : " + AGFileUtils.DataDir);
            builder.AppendLine("Obb dir? : " + AGFileUtils.ObbDir);

            builder.AppendLine("\n-------------ENVIRONMENT OTHER-------------");
            builder.AppendLine("Data dir? : " + AGEnvironment.DataDirectoryPath);
            builder.AppendLine("Root dir? : " + AGEnvironment.RootDirectoryPath);
            builder.AppendLine("Download/Cache dir? : " + AGEnvironment.DownloadCacheDirectoryPath);
            builder.AppendLine("External storage dir? : " + AGEnvironment.ExternalStorageDirectoryPath);
            builder.AppendLine("External storage state? : " + AGEnvironment.ExternalStorageState);
            builder.AppendLine("External storage removable? : " + AGEnvironment.IsExternalStorageRemovable);
            builder.AppendLine("External storage emulated? : " + AGEnvironment.IsExternalStorageEmulated);
            builder.AppendLine("Alarms full path? : " +
                               AGEnvironment.GetExternalStoragePublicDirectoryPath(AGEnvironment.DirectoryAlarms));

            builder.AppendLine("\n-------------BATTERY INFO-------------");
            builder.AppendLine("Current battery capacity (%) : " + AGBattery.Capacity);
            builder.AppendLine("Current battery health : " + AGBattery.Health);
            builder.AppendLine("Current battery charge level : " + AGBattery.Level);
            builder.AppendLine("Maximum battery charge level : " + AGBattery.Scale);
            builder.AppendLine("Current battery status : " + AGBattery.Status);
            builder.AppendLine("Battery technology : " + AGBattery.Technology);
            builder.AppendLine("Current battery temperature (C) : " + AGBattery.Temperature / 10f);
            builder.AppendLine("Current battery voltage (mV) : " + AGBattery.Voltage);
            builder.AppendLine("Current battery charge counter (μA-h) : " + AGBattery.ChargeCounter);
            builder.AppendLine("Average battery current (μA) : " + AGBattery.CurrentAverage);
            builder.AppendLine("Current battery current (μA) : " + AGBattery.CurrentNow);
            builder.AppendLine("Remaining energy (nW-h) : " + AGBattery.EnergyCounter);
            builder.AppendLine("Small icon ID : " + AGBattery.IconSmall);
            builder.AppendLine("Phone plugged state : " + AGBattery.PluggedState);
            builder.AppendLine("Battery charge level (%) : " + AGBattery.GetBatteryChargeLevel());
            builder.AppendLine("Charge time remaining (ms) : " + AGBattery.ChargeTimeRemaining);
            builder.AppendLine("Is battery low? : " + AGBattery.IsBatteryLow);
            builder.AppendLine("Is battery present? : " + AGBattery.IsBatteryPresent);

            builder.AppendLine("\n-------------Permissions-------------");
            builder.AppendLine("Has location permission? " +
                               AGPermissions.IsPermissionGranted(AGPermissions.ACCESS_FINE_LOCATION));
            builder.AppendLine("Has read contacts permission? " +
                               AGPermissions.IsPermissionGranted(AGPermissions.READ_CONTACTS));
            builder.AppendLine("Has access network state permission? " +
                               AGPermissions.IsPermissionGranted(AGPermissions.ACCESS_NETWORK_STATE));

            builder.AppendLine("\n-------------Location-------------");
            builder.AppendLine(TestDistanceInfo());
            builder.AppendLine("Last known location: " + AGGPS.GetLastKnownGPSLocation());
            builder.AppendLine("Has GPS?: " + AGGPS.DeviceHasGPS());

            builder.AppendLine("\n-------------Camera-------------");
            builder.AppendLine("Has camera? " + AGCamera.DeviceHasCamera());
            builder.AppendLine("Has autofocus? " + AGCamera.DeviceHasCameraWithAutoFocus());
            builder.AppendLine("Has flashlight? " + AGCamera.DeviceHasCameraWithFlashlight());
            builder.AppendLine("Has frontal camera? " + AGCamera.DeviceHasFrontalCamera());

            builder.AppendLine("\n-------------Shared Prefs-------------");
            builder.AppendLine("Get bool? " + AGSharedPrefs.GetBool(_sharedPrefsFileKey, BoolKey, true));
            builder.AppendLine("Get float? " + AGSharedPrefs.GetFloat(_sharedPrefsFileKey, FloatKey, float.MaxValue));
            builder.AppendLine("Get int? " + AGSharedPrefs.GetInt(_sharedPrefsFileKey, IntKey, int.MaxValue));
            builder.AppendLine("Get long? " + AGSharedPrefs.GetLong(_sharedPrefsFileKey, LongKey, long.MaxValue));
            builder.AppendLine("Get string? " + AGSharedPrefs.GetString(_sharedPrefsFileKey, StringKey, "default"));
            var allPrefs = AGSharedPrefs.GetAll(_sharedPrefsFileKey);
            foreach (var key in allPrefs.Keys)
            {
                Debug.Log(string.Format("{0} : {1}", key, allPrefs[key]));
            }

            builder.AppendLine("\n-------------Installed Apps-------------");
            foreach (var app in AGDeviceInfo.GetInstalledPackages().Take(10))
            {
                if (!string.IsNullOrEmpty(app.PackageName))
                {
                    builder.Append(app);
                    builder.Append(", ");
                }
            }

            AddNotificationsInfo(builder);

            AddShortcutInfo(builder);

            infoText.text = builder.ToString();
        }
Ejemplo n.º 16
0
 public void OnSendFacebookMessageImage()
 {
     AGShare.SendFacebookMessageImage(image);
 }
Ejemplo n.º 17
0
 // WhatsApp
 public void OnSendWhatsAppTextMessage()
 {
     AGShare.SendWhatsAppTextMessage(message);
 }
Ejemplo n.º 18
0
 public void OnShareClick()
 {
     AGShare.ShareTextWithImage(subject, text, image);
 }
Ejemplo n.º 19
0
 // Instagram
 public void OnSendInstagramImage()
 {
     AGShare.ShareInstagramPhoto(image);
 }
Ejemplo n.º 20
0
 public void OnSendSmsClick()
 {
     AGShare.SendSms("123123123", "Hello", withChooser);
 }
Ejemplo n.º 21
0
 public void OnSendTelegramImageMessage()
 {
     AGShare.SendTelegramImageMessage(image);
 }
Ejemplo n.º 22
0
 public void OnSendMmsClick()
 {
     AGShare.SendMms("777-888-999", "Hello my friend", image, false, "MMS!");
 }
Ejemplo n.º 23
0
 public void OnSendViberImageMessage()
 {
     AGShare.SendViberImageMessage(image);
 }
 public void OnSendSmsClick()
 {
     AGShare.SendSms("123123123", "Hello", withChooser, "Custom Chooser Title");
 }