C# Класс EasyBike.Droid.MainActivity

Наследование: IOnMapReadyCallback, Android.Support.V7.View.ActionMode.ICallback, ClusterManager.IOnClusterClickListener, ClusterManager.IOnClusterItemClickListener
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ActionMode Android.Support.V7.View.ActionMode
Items List
MapIsTouched bool
StationControls List
_stickToUserLocation bool
cts System.Threading.CancellationTokenSource

Открытые методы

Метод Описание
CloseDrawer ( ) : void
DisableCompass ( ) : void
EndPlacesSearch ( ) : void
GetDirectionsAsync ( ) : Task
OnActionItemClicked ( Android.Support.V7.View.ActionMode mode, IMenuItem item ) : bool
OnBackPressed ( ) : void
OnClusterClick ( ICluster cluster ) : bool

disabled by _map_MarkerClick :/

OnClusterItemClick ( Java marker ) : bool

disabled by _map_MarkerClick :/

OnConfigurationChanged ( Configuration newConfig ) : void
OnCreateActionMode ( Android.Support.V7.View.ActionMode mode, IMenu menu ) : bool
OnCreateOptionsMenu ( IMenu menu ) : bool

This is the menu for the Toolbar/Action Bar to use

OnDestroyActionMode ( Android.Support.V7.View.ActionMode mode ) : void
OnMapReady ( Android.Gms.Maps.GoogleMap googleMap ) : void
OnPrepareActionMode ( Android.Support.V7.View.ActionMode mode, IMenu menu ) : bool
SetViewPoint ( Android.Gms.Maps.Model.CameraPosition cameraPosition, bool animated ) : void
UnStickUserLocation ( ) : void

Защищенные методы

Метод Описание
OnActivityResult ( int requestCode, [ resultCode, Android.Content.Intent data ) : void

when return to the activity from another with parameters

OnCreate ( Bundle bundle ) : void
OnDestroy ( ) : void
OnNewIntent ( Android.Content.Intent intent ) : void
OnPause ( ) : void
OnPostCreate ( Bundle savedInstanceState ) : void
OnResume ( ) : void

Приватные методы

Метод Описание
AddDirectionsAsync ( ) : void
AddPlaceMarker ( Android.Gms.Maps.Model.LatLng position, string title, string snippet ) : void

add a marker for resolved adresses or map long click

AnimateStation ( Android.Gms.Maps.Model.Marker marker ) : void
AutoCompleteSearchPlaceTextView_ItemClick ( object sender, Android.Widget.AdapterView e ) : void
BikesButton_Click ( object sender, EventArgs e ) : void
CheckIfLocationIsActive ( ) : bool
ClearPolyline ( ) : void
CloseKeyboard ( ) : void
DecreaseButtonVisibility ( FloatingActionButton button ) : void
FormatLatLng ( Android.Gms.Maps.Model.LatLng position ) : string
FormatShareLocationMessage ( ) : string
GetAddressAsync ( ) : Task
GetDirectionsUrl ( Android.Gms.Maps.Model.LatLng origin, Android.Gms.Maps.Model.LatLng dest ) : string
GetPreviousLastUserLocation ( ) : void

when app launch before geolocator has found out the user location, set the last user location to what is in memory

GetStartingCameraPosition ( ) : Task

This is the menu for the Toolbar/Action Bar to use

IncreaseButtonVisibility ( FloatingActionButton button ) : void
LoadPreviousTile ( ) : void

Load the previous map tile choosen during last launch of the app

LocationButton_Click ( object sender, EventArgs e ) : void
Locator_PositionChanged ( object sender, Plugin e ) : void
OnContractRefreshed ( object sender, EventArgs e ) : void
OnStationRefreshed ( object sender, EventArgs e ) : void
ParkingButton_Click ( object sender, EventArgs e ) : void
ParseIntent ( Android.Content.Intent intent = null ) : void
RefreshStation ( Station station, Android.Gms.Maps.Model.Marker control ) : void
RefreshView ( AddRemoveCollection addRemoveCollection, CancellationToken token ) : void
ResetMapCameraViewAndStickers ( ) : void
SelectItem ( Android.Gms.Maps.Model.LatLng position ) : void

set the marke as the current marker and add directions

SetupMapIfNeeded ( ) : void
ShowIntentLocation ( ) : void
StartLocationTracking ( ) : void
SwitchModeStationParking ( ) : void

Switch between Parking view and Bike view

SwitchModeStationParkingVisualState ( ) : void

set the visual state of the bike/parking mode buttons

TileButton_Click ( object sender, EventArgs e ) : void
UpdateOverlay ( bool programatic = false ) : void
_createRouteIntent ( double latitude, double longitude ) : Android.Content.Intent
_createShareIntent ( ) : Android.Content.Intent
_currentTileNameAnimation_AnimationEnd ( object sender, Android.Views.Animations.Animation e ) : void
_map_MapClick ( object sender, Android.Gms.Maps.GoogleMap e ) : void
_map_MarkerClick ( object sender, Android.Gms.Maps.GoogleMap e ) : void

Описание методов

CloseDrawer() публичный Метод

public CloseDrawer ( ) : void
Результат void

DisableCompass() публичный Метод

public DisableCompass ( ) : void
Результат void

EndPlacesSearch() публичный Метод

public EndPlacesSearch ( ) : void
Результат void

GetDirectionsAsync() публичный Метод

public GetDirectionsAsync ( ) : Task
Результат Task

OnActionItemClicked() публичный Метод

public OnActionItemClicked ( Android.Support.V7.View.ActionMode mode, IMenuItem item ) : bool
mode Android.Support.V7.View.ActionMode
item IMenuItem
Результат bool

OnActivityResult() защищенный Метод

when return to the activity from another with parameters
protected OnActivityResult ( int requestCode, [ resultCode, Android.Content.Intent data ) : void
requestCode int
resultCode [
data Android.Content.Intent
Результат void

OnBackPressed() публичный Метод

public OnBackPressed ( ) : void
Результат void

OnClusterClick() публичный Метод

disabled by _map_MarkerClick :/
public OnClusterClick ( ICluster cluster ) : bool
cluster ICluster
Результат bool

OnClusterItemClick() публичный Метод

disabled by _map_MarkerClick :/
public OnClusterItemClick ( Java marker ) : bool
marker Java
Результат bool

OnConfigurationChanged() публичный Метод

public OnConfigurationChanged ( Configuration newConfig ) : void
newConfig Configuration
Результат void

OnCreate() защищенный Метод

protected OnCreate ( Bundle bundle ) : void
bundle Bundle
Результат void

OnCreateActionMode() публичный Метод

public OnCreateActionMode ( Android.Support.V7.View.ActionMode mode, IMenu menu ) : bool
mode Android.Support.V7.View.ActionMode
menu IMenu
Результат bool

OnCreateOptionsMenu() публичный Метод

This is the menu for the Toolbar/Action Bar to use
public OnCreateOptionsMenu ( IMenu menu ) : bool
menu IMenu Menu.
Результат bool

OnDestroy() защищенный Метод

protected OnDestroy ( ) : void
Результат void

OnDestroyActionMode() публичный Метод

public OnDestroyActionMode ( Android.Support.V7.View.ActionMode mode ) : void
mode Android.Support.V7.View.ActionMode
Результат void

OnMapReady() публичный Метод

public OnMapReady ( Android.Gms.Maps.GoogleMap googleMap ) : void
googleMap Android.Gms.Maps.GoogleMap
Результат void

OnNewIntent() защищенный Метод

protected OnNewIntent ( Android.Content.Intent intent ) : void
intent Android.Content.Intent
Результат void

OnPause() защищенный Метод

protected OnPause ( ) : void
Результат void

OnPostCreate() защищенный Метод

protected OnPostCreate ( Bundle savedInstanceState ) : void
savedInstanceState Bundle
Результат void

OnPrepareActionMode() публичный Метод

public OnPrepareActionMode ( Android.Support.V7.View.ActionMode mode, IMenu menu ) : bool
mode Android.Support.V7.View.ActionMode
menu IMenu
Результат bool

OnResume() защищенный Метод

protected OnResume ( ) : void
Результат void

SetViewPoint() публичный Метод

public SetViewPoint ( Android.Gms.Maps.Model.CameraPosition cameraPosition, bool animated ) : void
cameraPosition Android.Gms.Maps.Model.CameraPosition
animated bool
Результат void

UnStickUserLocation() публичный Метод

public UnStickUserLocation ( ) : void
Результат void

Описание свойств

ActionMode публичное свойство

public Android.Support.V7.View.ActionMode ActionMode
Результат Android.Support.V7.View.ActionMode

Items публичное свойство

public List Items
Результат List

MapIsTouched публичное статическое свойство

public static bool MapIsTouched
Результат bool

StationControls публичное свойство

public List StationControls
Результат List

_stickToUserLocation публичное свойство

public bool _stickToUserLocation
Результат bool

cts публичное свойство

public CancellationTokenSource,System.Threading cts
Результат System.Threading.CancellationTokenSource