protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_polling);

            mCompositeSubscription    = new CompositeDisposable();
            mCardInputWidget          = FindViewById <CardInputWidget>(Resource.Id.card_widget_three_d);
            mErrorDialogHandler       = new ErrorDialogHandler(SupportFragmentManager);
            mProgressDialogController = new ProgressDialogController(SupportFragmentManager);
            mPollingDialogController  = new PollingDialogController(this);
            mStripe = new Stripe(this);

            Button threeDSecureButton = FindViewById <Button>(Resource.Id.btn_three_d_secure);

            threeDSecureButton.Click += (s, e) =>
            {
                BeginSequence(false);
            };
            Button threeDSyncButton = FindViewById <Button>(Resource.Id.btn_three_d_secure_sync);

            threeDSyncButton.Click += (s, e) =>
            {
                BeginSequence(true);
            };

            RecyclerView recyclerView = FindViewById <RecyclerView>(Resource.Id.recycler_view);

            RecyclerView.LayoutManager linearLayoutManager = new LinearLayoutManager(this);
            recyclerView.HasFixedSize = true;
            recyclerView.SetLayoutManager(linearLayoutManager);
            mPollingAdapter = new PollingAdapter();
            recyclerView.SetAdapter(mPollingAdapter);
        }
Exemple #2
0
        public DependencyHandler(
            AppCompatActivity activity,
            CardInputWidget cardInputWidget,
            ListView outputListView)
        {
            mCardInputWidget = cardInputWidget;
            mContext         = activity.BaseContext;

            mProgresDialogController =
                new ProgressDialogController(activity.SupportFragmentManager);

            mListViewController = new ListViewController(outputListView);

            mErrorDialogHandler = new ErrorDialogHandler(activity.SupportFragmentManager);
        }
Exemple #3
0
		public void InitializeErrorDialogHandler (ErrorDialogHandler handler)
		{
			error_dialog_handler = handler;
		}
Exemple #4
0
 public void InitializeErrorDialogHandler(ErrorDialogHandler handler)
 {
     error_dialog_handler = handler;
 }