Esempio n. 1
0
 public void GetTelephonyDeviceId()
 {
     if (deviceInfoPlugin.CheckSim())
     {
         string telephonyDeviceId = deviceInfoPlugin.GetTelephonyDeviceId();
         if (telephonyDeviceIdText != null)
         {
             telephonyDeviceIdText.text = String.Format("telephony Device ID: {0}", telephonyDeviceId);
             Debug.Log(" telephony Device ID: " + telephonyDeviceId);
         }
     }
     else
     {
         telephonyDeviceIdText.text = String.Format("telephony Device ID: {0}", "no sim");
         Debug.Log("no sim");
     }
 }
    // Use this for initialization
    void Start()
    {
        deviceInfoPlugin = DeviceInfoPlugin.GetInstance();
        deviceInfoPlugin.SetDebug(0);
        deviceInfoPlugin.Init();
        deviceInfoPlugin.SetDeviceInfoCallbackListener(onGetAdvertisingIdComplete, onGetAdvertisingIdFail);

        hasSim = deviceInfoPlugin.CheckSim();
    }
    public void CheckSim()
    {
        bool hasSim = deviceInfoPlugin.CheckSim();

        if (simStatusText != null)
        {
            simStatusText.text = String.Format("Has Sim: {0}", hasSim);
            Debug.Log("Has Sim: " + hasSim);
        }
    }
Esempio n. 4
0
    // Use this for initialization
    void Start()
    {
        deviceInfoPlugin = DeviceInfoPlugin.GetInstance();
        deviceInfoPlugin.SetDebug(0);
        deviceInfoPlugin.Init();
        deviceInfoPlugin.SetDeviceInfoCallbackListener(onGetAdvertisingIdComplete,onGetAdvertisingIdFail);

        hasSim = deviceInfoPlugin.CheckSim();
    }