public KinEnvironment(string _clientId) { NativeBridge.Get().CreateKinEnvironment(_clientId); }
/// <summary> /// creates a new KinClient object /// </summary> /// <param name="environment"></param> /// <param name="appId"></param> /// <param name="storeKey"></param> public KinClient(Environment environment, string appId, string storeKey = null) { Assert.IsTrue(appId.Length == 4); _clientId = Utils.RandomString(); NativeBridge.Get().CreateClient(_clientId, environment, appId, storeKey); }
/// <summary> /// gets the total number of KinAccounts on this device for this KinClient /// </summary> /// <returns></returns> public int GetAccountCount() { return(NativeBridge.Get().GetAccountCount(_clientId)); }
/// <summary> /// removes all of the accounts on the device /// </summary> public void ClearAllAccounts() { NativeBridge.Get().ClearAllAccounts(_clientId); }