Exemplo 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");
     }
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        deviceInfoPlugin = DeviceInfoPlugin.GetInstance();
        deviceInfoPlugin.SetDebug(0);
        deviceInfoPlugin.Init();
        deviceInfoPlugin.SetDeviceInfoCallbackListener(onGetAdvertisingIdComplete, onGetAdvertisingIdFail);

        hasSim = deviceInfoPlugin.CheckSim();
    }
Exemplo n.º 3
0
    public void CheckSim()
    {
        bool hasSim = deviceInfoPlugin.CheckSim();

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

        hasSim = deviceInfoPlugin.CheckSim();
    }