/// <summary>
        /// Create a new instance
        /// </summary>
        /// <returns>The instance.</returns>
        /// <param name="confirmAction">Confirm action.</param>
        /// <param name="cancelAction">Cancel action.</param>
        public static NonDeliveryFragment NewInstance(Action <NonDeliveryReason> confirmAction, Action cancelAction)
        {
            var fragment = new NonDeliveryFragment {
                Arguments = new Bundle()
            };

            fragment._confirmAction = confirmAction;
            fragment._cancelAction  = cancelAction;
            return(fragment);
        }
Exemple #2
0
 /// <summary>
 /// Navigate to Non-Delivery
 /// </summary>
 void NavigateToNonDelivery(int adapterPosition)
 {
     _call = _calls[adapterPosition];
     _nonDeliveryFragment = NonDeliveryFragment.NewInstance(OnConfirmNonDelivery, OnCancelNonDelivery);
     _nonDeliveryFragment.Show(FragmentManager, NonDeliveryFragment.TAG);
 }