// when we navigate to the a ViewModel, we have a reserved method named called // "Init" and you can expect it to be called with some kind of "Nav" object // (which is why we created NavParams above) public void Init(NavParams navigationParams) { // note that the reason we don't pass the entire navigation object across // is because this navigation itself needs to be serializable, // needs to work across application restarts, // and you can't do that with a real object, have to do it with a key (like this Id) instead. ProjectDescription = navigationParams.InitialDescription; }
public LoginPage(NavController navCtrl, NavParams navParams, ToastController toastCtrl, LoadingController loadingCtrl, FormBuilder formBuilder, AuthenticationService authService) { }
// when we navigate to the a ViewModel, we have a reserved method named called // "Init" and you can expect it to be called with some kind of "Nav" object // (which is why we created NavParams above) public void Init(NavParams navigationParams) { // note that the reason we don't pass the entire navigation object across // is because this navigation itself needs to be serializable, // needs to work across application restarts, // and you can't do that with a real object, have to do it with a key (like this Id) instead. ItemOfStuff = _inboxService.GetByStuffId(navigationParams.StuffId); ActionOutcome = _itemOfStuff.StuffDescription; // Set the initial Project Name to whatever the StuffDescription was ProjectName = _itemOfStuff.StuffDescription; }
public LoginSuccessfulPage(NavController navCtrl, NavParams navParams) { }