public virtual void OnCreate(int?viewId, Bundle savedInstanceState, Action <Bundle> baseOnCreate) { AndroidBootstrapperBase.EnsureInitialized(); if (Tracer.TraceInformation) { Tracer.Info("OnCreate activity({0})", Target); } _bundle = savedInstanceState; OnCreate(savedInstanceState); baseOnCreate(savedInstanceState); var service = Get <INavigationService>(); service.OnCreateActivity(Target); var handler = Created; if (handler != null) { handler(Target, new ValueEventArgs <Bundle>(savedInstanceState)); } if (viewId.HasValue) { Target.SetContentView(viewId.Value); } }
/// <summary> /// Called when the activity is starting. /// </summary> public void OnCreate(Bundle savedInstanceState, Action <Bundle> baseOnCreate) { AndroidBootstrapperBase.EnsureInitialized(); Tracer.Info("OnCreate activity({0})", Target); _bundle = savedInstanceState; OnCreate(savedInstanceState); var service = Get <INavigationService>(); service.OnCreateActivity(Activity); baseOnCreate(savedInstanceState); var handler = Created; if (handler != null) { handler(Activity, new ValueEventArgs <Bundle>(savedInstanceState)); } }
public virtual void OnCreate(int?viewId, Bundle savedInstanceState, Action <Bundle> baseOnCreate) { AndroidBootstrapperBase.EnsureInitialized(Target, savedInstanceState); if (Tracer.TraceInformation) { Tracer.Info("OnCreate activity({0})", Target); } _savedInstanceState = savedInstanceState; OnCreate(savedInstanceState); baseOnCreate(savedInstanceState); _isCreated = true; var service = Get <INavigationService>(); service.OnCreateActivity(Target, NavigationContext); Created?.Invoke(Target, new ValueEventArgs <Bundle>(savedInstanceState)); if (viewId.HasValue) { Target.SetContentView(viewId.Value); } }