Exemplo n.º 1
0
    public void PresentChannelInterface(InviteChannel inviteChannel, InvitePackage invitePackage,
                                        Action onComplete, Action onCancel, Action <GetSocialError> onFailure)
    {
        GetSocialDebugLogger.D(string.Format("FacebookSharePlugin.PresentChannelInterface(), inviteChannel: {0}, invite package: {1}",
                                             inviteChannel, invitePackage));

        // GetSocialUi needs to be closed while Facebook activity is opened
        // because othewise it cannot deliever the result back to the app
        GetSocialUi.CloseView(true);
        SendInvite(invitePackage.ReferralDataUrl, onComplete, onCancel, onFailure);
    }
    public void PresentChannelInterface(InviteChannel inviteChannel, InvitePackage invitePackage,
                                        Action onComplete, Action onCancel, Action <GetSocialError> onFailure)
    {
        GetSocialDebugLogger.D(string.Format("FacebookInvitePlugin.PresentChannelInterface(), inviteChannel: {0}, invite package: {1}",
                                             inviteChannel, invitePackage));

#if UNITY_ANDROID && USE_GETSOCIAL_UI
        // Get Social UI needs to be closed while Facebook activity is opened
        // because othewise it cannot deliever the result back to the app
        GetSocialUi.CloseView(true);
#endif
        Uri imageUri = null;
        if (invitePackage.ImageUrl != null)
        {
            imageUri = new Uri(invitePackage.ImageUrl);
        }
        SendInvite(invitePackage.ReferralDataUrl, imageUri, onComplete, onCancel, onFailure);
    }
Exemplo n.º 3
0
 public bool IsAvailableForDevice(InviteChannel inviteChannel)
 {
     return(true);
 }