Skip to content

Instantly share code, notes, and snippets.

Avatar
🐼
Thinking

S.Tuğçe Arar stugcearar

🐼
Thinking
View GitHub Profile
View fused_location_provider_client_main.cs
public static FusedLocationProviderClient GetFusedLocationProviderClient(Android.App.Activity activity);
public static FusedLocationProviderClient GetFusedLocationProviderClient(Context context);
View ActivityIdentificationService.cs
public static ActivityIdentificationService GetService(Android.App.Activity activity);
public static ActivityIdentificationService GetService(Context context);
View manifest_actId.xml
<uses-permission android:name="com.huawei.hms.permission.ACTIVITY_RECOGNITION" />
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" />
View manifest_location.xml
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
//For Android 10 and higher
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name=="android.permission.ACCESS_MOCK_LOCATION"/>
View fused_location_provider_client.cs
public virtual Task LastLocation { get; }
public virtual Task LocationAvailability { get; }
public virtual Task GetLastLocationWithAddress(LocationRequest locationRequest);
public virtual Task RemoveLocationUpdates(LocationCallback locationCallback);
public virtual Task RemoveLocationUpdates(PendingIntent pendingIntent);
public virtual Task RequestLocationUpdates(LocationRequest locationRequest, LocationCallback locationCallback, Looper looper);
public virtual Task RequestLocationUpdates(LocationRequest locationRequest, PendingIntent pendingIntent);
public virtual Task SetMockLocation(Android.Locations.Location location);
public virtual Task SetMockMode(bool mode);
View manifest_map.xml
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
View conversion_types.cs
public const int DwellGeofenceConversion = 4;
public const int EnterGeofenceConversion = 1;
public const int ExitGeofenceConversion = 2;
public const long GeofenceNeverExpire = -1;
View cameraupdatefactory.cs
public static CameraUpdate NewCameraPosition(CameraPosition p0);
public static CameraUpdate NewLatLng(LatLng p0);
public static CameraUpdate NewLatLngBounds(LatLngBounds p0, int p1);
public static CameraUpdate NewLatLngBounds(LatLngBounds p0, int p1, int p2, int p3);
public static CameraUpdate NewLatLngZoom(LatLng p0, float p1);
public static CameraUpdate ScrollBy(float p0, float p1);
public static CameraUpdate ZoomBy(float p0);
public static CameraUpdate ZoomBy(float p0, Point p1);
public static CameraUpdate ZoomIn();
public static CameraUpdate ZoomOut();
View uisettings.cs
public bool CompassEnabled { get; set; }
public bool IndoorLevelPickerEnabled { get; set; }
public bool MapToolbarEnabled { get; set; }
public bool MyLocationButtonEnabled { get; set; }
public bool RotateGesturesEnabled { get; set; }
public bool ScrollGesturesEnabled { get; set; }
public bool ScrollGesturesEnabledDuringRotateOrZoom { get; set; }
public bool TiltGesturesEnabled { get; set; }
public bool ZoomControlsEnabled { get; set; }
public bool ZoomGesturesEnabled { get; set; }
View manifest_1.xml
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
You can’t perform that action at this time.