public Task <ActivityResult> StartActivityForResultAsync(Intent intent, int requestCode) { var info = (AssociatedActivityInfo <TController>)ActivityControllerRegistry.Get(AssociatedActivityId); return(info.ControllerActivity.StartActivityForResultAsync(intent, requestCode)); }
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); }