Example #1
0
        /// <summary>
        /// Called when a system notification for a content has been actioned. </summary>
        /// <param name="context"> context. </param>
        /// <param name="intent"> intent describing the content. </param>
        private void onNotificationActioned(Context context, Intent intent)
        {
            /* Get content */
            EngagementReachAgent reachAgent           = EngagementReachAgent.getInstance(context);
            EngagementReachInteractiveContent content = reachAgent.getContent(intent);

            /* If content retrieved successfully */
            if (content != null)

            /* Tell reach to start the content activity */
            {
                content.actionNotification(context, true);
            }
        }