Exemple #1
0
 protected void OnEventHandler(SnResultCode result)
 {
     if (EventCallback != null)
     {
         EventCallback(result);
     }
 }
    private void OnEventHandler(SnResultCode result)
    {
        switch (result)
        {
        case SnResultCode.kLoggedIn:
            logged_in_ = true;
            break;

        case SnResultCode.kError:
            DebugUtils.Assert(false);
            break;
        }
    }
    private void OnEventHandler(SnResultCode result)
    {
        switch (result)
        {
        case SnResultCode.kLoggedIn:
            logged_in_ = true;
            break;

        case SnResultCode.kError:
            DebugUtils.Assert(false);
            break;
        }
    }
Exemple #4
0
    private void OnFacebookEvent(SnResultCode result)
    {
        switch (result)
        {
        case SnResultCode.kInitialized:
            facebook.LogInWithPublish(new List <string>()
            {
                "public_profile", "email", "user_friends", "publish_actions"
            });
            break;

        case SnResultCode.kError:
            DebugUtils.Assert(false);
            break;
        }
    }
 protected void OnEventHandler(SnResultCode result)
 {
     if (EventCallback != null)
         EventCallback(result);
 }
    private void OnFacebookEvent(SnResultCode result)
    {
        switch (result)
        {
        case SnResultCode.kInitialized:
            facebook.LogInWithPublish(new List<string>() {
                "public_profile", "email", "user_friends", "publish_actions"});
            break;

        case SnResultCode.kError:
            DebugUtils.Assert(false);
            break;
        }
    }