ArcGISRuntimeXamarin.Samples.AuthorEditSaveMap.AuthorEditSaveMap.OnCreate C# (CSharp) Method

OnCreate() protected method

protected OnCreate ( Bundle bundle ) : void
bundle Bundle
return void
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // (This line is not in the tutorial) Display the name of the sample in the viewer
            Title = "Author and save a map";

            // Create the UI
            CreateLayout();

            // Set up AuthenticationManager
            UpdateAuthenticationManager();

            // Assign map from view model Map property
            _mapView.Map = _mapViewModel.Map;

            // Listen for changes on the view model
            _mapViewModel.PropertyChanged += MapViewModel_PropertyChanged;
        }