コード例 #1
0
        public PasswordController(AuthAdapter cognitoInstance, ILogger <AuthController> logger)

        {
            _congnitoInstance = cognitoInstance;

            _logger = logger;
        }
コード例 #2
0
        private void InitAuthenticators()
        {
            _authSource = new AuthSource(_connection);

            var isCompact = _sharedPrefs.GetBoolean("pref_compactMode", false);

            _authAdapter = new AuthAdapter(_authSource, IsDark, isCompact);

            _authAdapter.ItemClick        += ItemClick;
            _authAdapter.ItemOptionsClick += ItemOptionsClick;
            _authAdapter.SetHasStableIds(true);

            _authList.SetAdapter(_authAdapter);
            _authList.HasFixedSize = true;
            _authList.SetItemViewCacheSize(20);

            var animation =
                AnimationUtils.LoadLayoutAnimation(this, Resource.Animation.layout_animation_fall_down);

            _authList.LayoutAnimation = animation;

            var useGrid = IsTablet();
            var layout  = new AuthListGridLayoutManager(this, useGrid ? 2 : 1);

            _authList.SetLayoutManager(layout);

            var callback    = new AuthListTouchHelperCallback(_authAdapter, useGrid);
            var touchHelper = new ItemTouchHelper(callback);

            touchHelper.AttachToRecyclerView(_authList);
        }