private void LoginUser(string email, string password)
        {
            var app = AppDataHelper.GetAuth();

            app.SignInWithEmailAndPassword(email, password)
            .AddOnCompleteListener(this);
        }
Exemple #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            SetContentView(Resource.Layout.MainDashboard);
            Android.Support.V7.Widget.Toolbar toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar);
            SetSupportActionBar(toolbar);


            //Init Firebase
            auth = FirebaseAuth.GetInstance(AppDataHelper.GetAuth().App);

            DrawerLayout          drawer = FindViewById <DrawerLayout>(Resource.Id.drawer_layout);
            ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this, drawer, toolbar, Resource.String.navigation_drawer_open, Resource.String.navigation_drawer_close);

            drawer.AddDrawerListener(toggle);
            toggle.SyncState();


            NavigationView navigationView = FindViewById <NavigationView>(Resource.Id.nav_view);
            View           headerView     = navigationView.GetHeaderView(0);

            nameNav  = (TextView)headerView.FindViewById(Resource.Id.NameNav);
            emailNav = (TextView)headerView.FindViewById(Resource.Id.emailNav);
            RetrievedUser();


            navigationView.SetNavigationItemSelectedListener(this);
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.Registration);
            mAuth = FirebaseAuth.GetInstance(AppDataHelper.GetAuth().App);
            FirebaseUser             user       = mAuth.CurrentUser;
            UserProfileChangeRequest profUpdate = new UserProfileChangeRequest.Builder().SetDisplayName(fullname).Build();

            ConnectControl();
        }
Exemple #4
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.login);
            emailText           = (TextInputLayout)FindViewById(Resource.Id.emailText);
            passwordText        = (TextInputLayout)FindViewById(Resource.Id.passwordText);
            rootView            = (CoordinatorLayout)FindViewById(Resource.Id.rootView);
            loginButton         = (Button)FindViewById(Resource.Id.loginButton);
            signinButton        = (TextView)FindViewById(Resource.Id.signinButton);
            forgotButton        = (TextView)FindViewById(Resource.Id.forgotButton);
            mAuth               = FirebaseAuth.GetInstance(AppDataHelper.GetAuth().App);
            loginButton.Click  += LoginButton_Click;
            signinButton.Click += SigninButton_Click;
            forgotButton.Click += ForgotButton_Click;
        }
Exemple #5
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            view             = inflater.Inflate(Resource.Layout.DriversList, container, false);
            inputText        = Arguments.GetString("search_text");
            rootsview        = (LinearLayout)view.FindViewById(Resource.Id.rootsview);
            feedBack         = (TextInputLayout)view.FindViewById(Resource.Id.Feedback);
            rating           = (RatingBar)view.FindViewById(Resource.Id.ratingbar);
            subButton        = (Button)view.FindViewById(Resource.Id.subButton);
            subButton.Click += SubButton_Click;
            myRecyclerView   = (RecyclerView)view.FindViewById(Resource.Id.myRecyclerView);
            mAuth            = AppDataHelper.GetAuth();
            RetrievedData();

            //CreateData();
            //SetUpRecyClerView();
            return(view);
        }