コード例 #1
0
        void onNotificationClicked(AndroidJavaObject notificationAJO, AndroidJavaObject contextAJO)
        {
            Debug.Log(">>>>>>> XXXX");
            var notification = AndroidAJOConverter.Convert <Notification>(notificationAJO);
            var context      = AndroidAJOConverter.Convert <NotificationContext>(contextAJO);

            ExecuteOnMainThread(() => _notificationClickListener(notification, context));
        }
コード例 #2
0
        AndroidJavaObject ToAJO()
        {
            var clazz = new AndroidJavaClass("im.getsocial.sdk.ui.pushnotifications.NotificationCenterViewBuilder");
            var notificationCenterViewBuilderAJO = clazz.CallStaticAJO("create", AndroidAJOConverter.Convert(_query, "im.getsocial.sdk.notifications.NotificationsQuery"));

            if (_notificationClickListener != null)
            {
                notificationCenterViewBuilderAJO.CallAJO("setNotificationClickListener",
                                                         new NotificationClickListenerProxy(_notificationClickListener));
            }

            return(notificationCenterViewBuilderAJO);
        }
コード例 #3
0
        AndroidJavaObject ToAJO()
        {
            var invitesBuilderAJOClass = new AndroidJavaClass("im.getsocial.sdk.ui.invites.InvitesViewBuilder");
            var invitesBuilderAJO      = invitesBuilderAJOClass.CallStaticAJO("create");

            if (_inviteContent != null)
            {
                invitesBuilderAJO.CallAJO("setCustomInviteContent", AndroidAJOConverter.Convert(_inviteContent, "im.getsocial.sdk.invites.InviteContent"));
            }

            if (_onInviteComplete != null)
            {
                invitesBuilderAJO.CallAJO("setInviteCallback",
                                          new InviteUiCallbackProxy(_onInviteComplete, _onInviteCancel, _onInviteFailure));
            }

            return(invitesBuilderAJO);
        }
コード例 #4
0
        void handleAction(AndroidJavaObject ajoAction)
        {
            var action = AndroidAJOConverter.Convert <GetSocialAction>(ajoAction);

            ExecuteOnMainThread(() => _internal(action));
        }
コード例 #5
0
        void onAvatarClicked(AndroidJavaObject publicUserAjo)
        {
            var publicUser = AndroidAJOConverter.Convert <User>(publicUserAjo);

            ExecuteOnMainThread(() => _avatarClickListener(publicUser));
        }
コード例 #6
0
        AndroidJavaObject ToAJO()
        {
            var activityFeedBuilderAJOClass = new AndroidJavaClass("im.getsocial.sdk.ui.communities.ActivityFeedViewBuilder");
            var activityFeedBuilderAJO      = activityFeedBuilderAJOClass.CallStaticAJO("create", AndroidAJOConverter.Convert(_query, "im.getsocial.sdk.communities.ActivitiesQuery"));

            if (_actionListener != null)
            {
                activityFeedBuilderAJO.CallAJO("setActionListener",
                                               new ActionListenerProxy(_actionListener));
            }
            if (_onAvatarClickListener != null)
            {
                activityFeedBuilderAJO.CallAJO("setAvatarClickListener",
                                               new AvatarClickListenerProxy(_onAvatarClickListener));
            }
            if (_onMentionClickListener != null)
            {
                activityFeedBuilderAJO.CallAJO("setMentionClickListener",
                                               new MentionClickListenerProxy(_onMentionClickListener));
            }
            if (_tagClickListener != null)
            {
                activityFeedBuilderAJO.CallAJO("setTagClickListener",
                                               new TagClickListenerProxy(_tagClickListener));
            }

            return(activityFeedBuilderAJO);
        }