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)); }
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); }
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); }
void handleAction(AndroidJavaObject ajoAction) { var action = AndroidAJOConverter.Convert <GetSocialAction>(ajoAction); ExecuteOnMainThread(() => _internal(action)); }
void onAvatarClicked(AndroidJavaObject publicUserAjo) { var publicUser = AndroidAJOConverter.Convert <User>(publicUserAjo); ExecuteOnMainThread(() => _avatarClickListener(publicUser)); }
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); }