C# 클래스 EasyBike.Droid.MainActivity

상속: IOnMapReadyCallback, Android.Support.V7.View.ActionMode.ICallback, ClusterManager.IOnClusterClickListener, ClusterManager.IOnClusterItemClickListener
파일 보기 프로젝트 열기: ThePublicBikeGang/EasyBike 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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