public void GetMapAsync(BindingMapAdapter adapter = null, Bundle savedInstanceState = null) { if (adapter != null) { Adapter = adapter; } OnCreate(savedInstanceState); base.GetMapAsync(this); OnResume(); }
/// <summary> /// Attempts to initialize maps. /// </summary> /// <param name="context"></param> /// <returns> /// Returns a result code from Android.Gms.Common.ResultCode where a 0 is /// a success. /// </returns> public int Initialize(Activity context, BindingMapAdapter adapter, Bundle savedInstanceState = null) { MapsInitializer.Initialize(context); var resultCode = GoogleApiAvailability.Instance.IsGooglePlayServicesAvailable(context); if (resultCode == ConnectionResult.Success) { GetMapAsync(adapter, savedInstanceState); } return(resultCode); }
protected override void SetValueImpl(BindingMapAdapter target, IEnumerable <IBindingMapAnnotation> value) { if (!ReferenceEquals(value, Target.AnnotationSource)) { _collectionSubscription?.Dispose(); _collectionSubscription = null; Target.AnnotationSource = value; if (Target.AnnotationSource is INotifyCollectionChanged cObservable && cObservable != null) { _collectionSubscription = cObservable.WeakSubscribe(OnItemSourceCollectionChanged); } } }
public BindingMapAdapterAnnotationSourceTargetBinding(BindingMapAdapter target) : base(target) { }