Exemplo n.º 1
0
        internal override void ReportOnSocialActionFailed(eSocialActionType _actionType, eSocialProvider _provider)
        {
            base.ReportOnSocialActionFailed(_actionType, _provider);

            // Native call
            grow_onSocialActionFailedForProvider((int)_actionType, (int)_provider);
        }
Exemplo n.º 2
0
        protected void TweetComposerDismissed(string _resultStr)
        {
            // Resume unity player
            this.ResumeUnity();

            eTwitterComposerResult _result;

            // Parse received data
            ParseTweetComposerDismissedData(_resultStr, out _result);
            DebugUtility.Logger.Log(Constants.kDebugTag, "[Twitter] Tweet composer was dismissed, Result=" + _result);

            if (OnTweetComposerClosed != null)
            {
                OnTweetComposerClosed(_result);
            }

#if USES_SOOMLA_GROW
            eSocialActionType _actionType = m_lastTweetWasTextOnly ? eSocialActionType.UPDATE_STATUS : eSocialActionType.UPDATE_STORY;

            if (_result == eTwitterComposerResult.DONE)
            {
                NPBinding.SoomlaGrowService.ReportOnSocialActionFinished(_actionType, eSocialProvider.TWITTER);
            }
            else
            {
                NPBinding.SoomlaGrowService.ReportOnSocialActionCancelled(_actionType, eSocialProvider.TWITTER);
            }
#endif
        }
        internal override void ReportOnSocialActionFailed(eSocialActionType _actionType, eSocialProvider _provider)
        {
            base.ReportOnSocialActionFailed(_actionType, _provider);

            // Native call
            Plugin.Call(Native.Methods.ON_SOCIAL_ACTION_FAILED_FOR_PROVIDER, (int)_provider, (int)_actionType);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Shows a view to compose and send Tweet message.
        /// </summary>
        /// <param name="_message">The initial text for the Tweet.</param>
        /// <param name="_URL">URL that has to be shared in the Tweet.</param>
        /// <param name="_imgByteArray">Raw image data that has to be shared in the Tweet.</param>
        /// <param name="_onCompletion">Callback that will be called after operation is completed.</param>
        public virtual void ShowTweetComposer(string _message, string _URL, byte[] _imgByteArray, TWTRTweetCompletion _onCompletion)
        {
            // Pause unity player
            this.PauseUnity();

            // Cache callback
            OnTweetComposerClosed = _onCompletion;

#if USES_SOOMLA_GROW
            bool _tweetingMessage         = (_URL == null && _imgByteArray == null);
            eSocialActionType _actionType = _tweetingMessage ? eSocialActionType.UPDATE_STATUS : eSocialActionType.UPDATE_STORY;

            // Cache information
            m_lastTweetWasTextOnly = _tweetingMessage;

            // Report this event
            NPBinding.SoomlaGrowService.ReportOnSocialActionStarted(_actionType, eSocialProvider.TWITTER);
#endif
        }
 internal virtual void ReportOnSocialActionFailed(eSocialActionType _actionType, eSocialProvider _provider)
 {
     DebugUtility.Logger.Log(Constants.kDebugTag, "[SoomlaGrow] Reporting: OnSocialActionFailed.");
 }
 internal virtual void ReportOnSocialActionCancelled(eSocialActionType _actionType, eSocialProvider _provider)
 {
     Console.Log(Constants.kDebugTag, "[SoomlaGrow] Reporting: OnSocialActionCancelled.");
 }