public KinEnvironment(string _clientId)
 {
     NativeBridge.Get().CreateKinEnvironment(_clientId);
 }
Exemple #2
0
 /// <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);
 }
Exemple #3
0
 /// <summary>
 /// gets the total number of KinAccounts on this device for this KinClient
 /// </summary>
 /// <returns></returns>
 public int GetAccountCount()
 {
     return(NativeBridge.Get().GetAccountCount(_clientId));
 }
Exemple #4
0
 /// <summary>
 /// removes all of the accounts on the device
 /// </summary>
 public void ClearAllAccounts()
 {
     NativeBridge.Get().ClearAllAccounts(_clientId);
 }