/**
     * Creates a new instance of RichPushMessageDialogFragment
     * @param messageId The id of the message to display
     * @return RichPushMessageDialogFragment
     */
		public static RichPushMessageDialogFragment NewInstance (string messageId)
		{
			RichPushMessageDialogFragment fragment = new RichPushMessageDialogFragment ();

			Bundle args = new Bundle ();
			args.PutString (MESSAGE_ID_KEY, messageId);
			fragment.Arguments = args;

			return fragment;
		}
Esempio n. 2
0
        /**
         * Creates a new instance of RichPushMessageDialogFragment
         * @param messageId The id of the message to display
         * @return RichPushMessageDialogFragment
         */
        public static RichPushMessageDialogFragment NewInstance(string messageId)
        {
            RichPushMessageDialogFragment fragment = new RichPushMessageDialogFragment();

            Bundle args = new Bundle();

            args.PutString(MESSAGE_ID_KEY, messageId);
            fragment.Arguments = args;

            return(fragment);
        }
        /**
         * Displays the rich push message in a RichPushMessageDialogFragment
         * @param messageId The specified message id
         */
        private void ShowRichPushMessage(string messageId)
        {
            RichPushMessageDialogFragment message = RichPushMessageDialogFragment.NewInstance(messageId);

            message.Show(this.SupportFragmentManager, "message");
        }