C# Class EasyBike.Droid.MainActivity

Inheritance: IOnMapReadyCallback, Android.Support.V7.View.ActionMode.ICallback, ClusterManager.IOnClusterClickListener, ClusterManager.IOnClusterItemClickListener
Afficher le fichier Open project: ThePublicBikeGang/EasyBike Class Usage Examples

Méthodes publiques

Свойство Type Description
ActionMode Android.Support.V7.View.ActionMode
Items List
MapIsTouched bool
StationControls List
_stickToUserLocation bool
cts System.Threading.CancellationTokenSource

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

CloseDrawer() public méthode

public CloseDrawer ( ) : void
Résultat void

DisableCompass() public méthode

public DisableCompass ( ) : void
Résultat void

EndPlacesSearch() public méthode

public EndPlacesSearch ( ) : void
Résultat void

GetDirectionsAsync() public méthode

public GetDirectionsAsync ( ) : Task
Résultat Task

OnActionItemClicked() public méthode

public OnActionItemClicked ( Android.Support.V7.View.ActionMode mode, IMenuItem item ) : bool
mode Android.Support.V7.View.ActionMode
item IMenuItem
Résultat bool

OnActivityResult() protected méthode

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
Résultat void

OnBackPressed() public méthode

public OnBackPressed ( ) : void
Résultat void

OnClusterClick() public méthode

disabled by _map_MarkerClick :/
public OnClusterClick ( ICluster cluster ) : bool
cluster ICluster
Résultat bool

OnClusterItemClick() public méthode

disabled by _map_MarkerClick :/
public OnClusterItemClick ( Java marker ) : bool
marker Java
Résultat bool

OnConfigurationChanged() public méthode

public OnConfigurationChanged ( Configuration newConfig ) : void
newConfig Configuration
Résultat void

OnCreate() protected méthode

protected OnCreate ( Bundle bundle ) : void
bundle Bundle
Résultat void

OnCreateActionMode() public méthode

public OnCreateActionMode ( Android.Support.V7.View.ActionMode mode, IMenu menu ) : bool
mode Android.Support.V7.View.ActionMode
menu IMenu
Résultat bool

OnCreateOptionsMenu() public méthode

This is the menu for the Toolbar/Action Bar to use
public OnCreateOptionsMenu ( IMenu menu ) : bool
menu IMenu Menu.
Résultat bool

OnDestroy() protected méthode

protected OnDestroy ( ) : void
Résultat void

OnDestroyActionMode() public méthode

public OnDestroyActionMode ( Android.Support.V7.View.ActionMode mode ) : void
mode Android.Support.V7.View.ActionMode
Résultat void

OnMapReady() public méthode

public OnMapReady ( Android.Gms.Maps.GoogleMap googleMap ) : void
googleMap Android.Gms.Maps.GoogleMap
Résultat void

OnNewIntent() protected méthode

protected OnNewIntent ( Android.Content.Intent intent ) : void
intent Android.Content.Intent
Résultat void

OnPause() protected méthode

protected OnPause ( ) : void
Résultat void

OnPostCreate() protected méthode

protected OnPostCreate ( Bundle savedInstanceState ) : void
savedInstanceState Bundle
Résultat void

OnPrepareActionMode() public méthode

public OnPrepareActionMode ( Android.Support.V7.View.ActionMode mode, IMenu menu ) : bool
mode Android.Support.V7.View.ActionMode
menu IMenu
Résultat bool

OnResume() protected méthode

protected OnResume ( ) : void
Résultat void

SetViewPoint() public méthode

public SetViewPoint ( Android.Gms.Maps.Model.CameraPosition cameraPosition, bool animated ) : void
cameraPosition Android.Gms.Maps.Model.CameraPosition
animated bool
Résultat void

UnStickUserLocation() public méthode

public UnStickUserLocation ( ) : void
Résultat void

Property Details

ActionMode public_oe property

public Android.Support.V7.View.ActionMode ActionMode
Résultat Android.Support.V7.View.ActionMode

Items public_oe property

public List Items
Résultat List

MapIsTouched public_oe static_oe property

public static bool MapIsTouched
Résultat bool

StationControls public_oe property

public List StationControls
Résultat List

_stickToUserLocation public_oe property

public bool _stickToUserLocation
Résultat bool

cts public_oe property

public CancellationTokenSource,System.Threading cts
Résultat System.Threading.CancellationTokenSource