public RequestToken login ( String regitrationId , int flags , BaasHandler < BaasUser > handler ) { BaasBox box = BaasBox . getDefault ( ) ; if ( password == null ) throw new IllegalStateException ( "password cannot be null" ) ; NetworkTask < BaasUser > task = new LoginRequest ( box , this , regitrationId , flags , handler ) ; return box . submitAsync ( task ) ; }
Asynchronously logins the user with password and registrationId obtained through gcm . The handler will be invoked upon completion of the request . The request is executed at the gien priority .