This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" /> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public virtual long ElapsedTimeFromReboot { get; set; } | |
public virtual IList<ActivityIdentificationData> ActivityIdentificationDatas { get; set; } | |
public virtual long Time { get; set; } | |
public virtual ActivityIdentificationData MostActivityIdentification { get; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public virtual void PutExtras(string p0, string p1); | |
public virtual LocationRequest SetCountryCode(string p0); | |
public virtual LocationRequest SetExpirationDuration(long p0); | |
public virtual LocationRequest SetExpirationTime(long p0); | |
public virtual LocationRequest SetFastestInterval(long p0); | |
public virtual LocationRequest SetInterval(long p0); | |
public virtual LocationRequest SetLanguage(string p0); | |
public virtual LocationRequest SetMaxWaitTime(long p0); | |
public virtual LocationRequest SetNeedAddress(bool p0); | |
public virtual LocationRequest SetNumUpdates(int p0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void SetSearchResultOnMap(IList<Com.Huawei.Hms.Site.Api.Model.Site> sites) | |
{ | |
hMap.Clear(); | |
if (searchMarkers != null && searchMarkers.Count > 0) | |
foreach (var item in searchMarkers) | |
item.Remove(); | |
searchMarkers = new List<Marker>(); | |
for (int i = 0; i < sites.Count; i++) | |
{ | |
MarkerOptions marker1Options = new MarkerOptions() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NearbySearchResultListener : Java.Lang.Object, ISearchResultListener | |
{ | |
private MainActivity context; | |
public NearbySearchResultListener(MainActivity context) | |
{ | |
this.context = context; | |
} | |
public void OnSearchError(SearchStatus status) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void NearbySearch(LatLng currentLocation, string searchText) | |
{ | |
ISearchService searchService = SearchServiceFactory.Create(activity, Android.Net.Uri.Encode("YOUR_API_KEY")); | |
NearbySearchRequest nearbySearchRequest = new NearbySearchRequest(); | |
nearbySearchRequest.Query = searchText; | |
nearbySearchRequest.Language = "en"; | |
nearbySearchRequest.Location = new Coordinate(currentLocation.Latitude, currentLocation.Longitude); | |
nearbySearchRequest.Radius = (Integer)2000; | |
nearbySearchRequest.PageIndex = (Integer)1; | |
nearbySearchRequest.PageSize = (Integer)5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void btnGeoWithAddress_Click(object sender, EventArgs e) | |
{ | |
search_view = base.LayoutInflater.Inflate(Resource.Layout.search_alert_layout, null); | |
AlertDialog.Builder builder = new AlertDialog.Builder(this); | |
builder.SetView(search_view); | |
builder.SetTitle("Search Location"); | |
builder.SetNegativeButton("Cancel", (sender, arg) => { builder.Dispose(); }); | |
search_view.FindViewById<Button>(Resource.Id.btnSearch).Click += btnSearchClicked; | |
alert = builder.Create(); | |
alert.Show(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<LinearLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:padding="20dp" | |
android:minWidth="25px" | |
android:minHeight="25px"> | |
<EditText | |
android:layout_width="match_parent" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CreateGeoFailListener : Java.Lang.Object, IOnFailureListener | |
{ | |
private Activity mainActivity; | |
public CreateGeoFailListener(Activity mainActivity) | |
{ | |
this.mainActivity = mainActivity; | |
} | |
public void OnFailure(Java.Lang.Exception ex) |