Ouya.Console.Api.GamerUuidListener.OnSuccess C# (CSharp) Méthode

OnSuccess() public méthode

public OnSuccess ( global result ) : void
result global
Résultat void
        public void OnSuccess(global::Java.Lang.Object result)
        {
            var str = result.JavaCast<Java.Lang.String>().ToString();
            // Parse gamerUuid into string
            string gamerUuid = string.Empty;
            try
            {
                gamerUuid = str;
                // Cache the gamerUuid to file for later use when the network may not be accessible
                ToCache(gamerUuid);
            }
            catch (Exception e)
            {
                OnFailure(OuyaErrorCodes.ThrowDuringOnSuccess, "Error retrieving gamerUuid: " + e.Message, Bundle.Empty);
            }

            _tcs.SetResult(gamerUuid);
        }