public Task <ActivityResult> StartActivityForResultAsync(Intent intent, int requestCode)
        {
            var info = (AssociatedActivityInfo <TController>)ActivityControllerRegistry.Get(AssociatedActivityId);

            return(info.ControllerActivity.StartActivityForResultAsync(intent, requestCode));
        }
Exemplo n.º 2
0
        public TController GetActivity <TActivity, TController>() where TActivity : ActivityController where TController : ControllerActivity <TActivity>
        {
            var info = ActivityControllerRegistry.Get <TActivity>(AssociatedActivityId);

            return((TController)info.ControllerActivity);
        }
        public TController GetController()
        {
            var info = (AssociatedActivityInfo <TController>)ActivityControllerRegistry.Get(AssociatedActivityId);

            return(info.ActivityController);
        }