Esempio n. 1
0
    public string GetMelVersion()
    {
        AndroidJavaClass MelCls = getMel();

        if (MelCls == null)
        {
            return("");
        }
        return(PlatformIntegrationUtil.CallStatic <string>(MelCls, "getMelVersion"));
    }
Esempio n. 2
0
    public string GetUid()
    {
        AndroidJavaClass MelCls = getMel();

        if (MelCls == null)
        {
            return("");
        }
        string uid = PlatformIntegrationUtil.CallStatic <string>(MelCls, "getUid");

        return(uid);
    }
Esempio n. 3
0
    public bool IsMelEnabled()
    {
        AndroidJavaClass MelCls = getMel();

        if (MelCls == null)
        {
            return(false);
        }
        bool enabled = PlatformIntegrationUtil.CallStatic <Boolean>(MelCls, "isMelEnabled");

        return(enabled);
    }
Esempio n. 4
0
    public string SetToken(string token, string app_name)
    {
        AndroidJavaClass MelCls = getMel();

        if (MelCls == null)
        {
            return("");
        }
        object[] pa = new object[3] {
            getActivity(), token, app_name
        };
        string sent_token = PlatformIntegrationUtil.CallStatic <string>(MelCls, "sendSetToken", pa);

        return(sent_token);
    }