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 interface StoreManagementUseCase { | |
Mono<Store> addStore(Store store); | |
} |
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
Position southwestBound = new Position(17.418652, 78.327941); | |
Position northeastBound = new Position(17.439288, 78.354593); | |
var bounds = new Bounds(southwestBound, northeastBound); | |
mapView.MoveToRegion(MapSpan.FromBounds(bounds)); |
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
var platformConfig = new PlatformConfig | |
{ | |
BitmapDescriptorFactory = new AccessNativeBitmapConfig() | |
}; | |
Xamarin.FormsGoogleMaps.Init(this, savedInstanceState, platformConfig); |
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 AddMarkers() | |
{ | |
Position loc1 = new Position(17.430486, 78.341331); | |
Position loc2 = new Position(17.427579, 78.342017); | |
Pin marker1 = new Pin() | |
{ | |
Address = "Gachibowli", | |
IsVisible = true, | |
Label = "Microsoft Hyderabad", |
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
using Xamarin.Forms.GoogleMaps; | |
using Xamarin.Forms.GoogleMaps.Android.Factories; | |
using AndroidBitmapDescriptor = Android.Gms.Maps.Model.BitmapDescriptor; | |
using AndroidBitmapDescriptorFactory = Android.Gms.Maps.Model.BitmapDescriptorFactory; | |
public sealed class AccessNativeBitmapConfig : IBitmapDescriptorFactory | |
{ | |
public AndroidBitmapDescriptor ToNative(BitmapDescriptor descriptor) | |
{ |
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 AddMarkers() | |
{ | |
Position loc1 = new Position(17.430486, 78.341331); | |
Position loc2 = new Position(17.427579, 78.342017); | |
Pin marker1 = new Pin() | |
{ | |
Address = "Gachibowli", | |
IsVisible = true, | |
Label = "Microsoft Hyderabad", |
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.INTERNET" /> | |
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | |
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /> | |
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
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
<gmaps:Map | |
x:Name="mapView" /> |
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 InitializeFaceClient() | |
{ | |
ApiKeyServiceClientCredentials credentials = new ApiKeyServiceClientCredentials(APIKEY); | |
faceClient = new FaceClient(credentials); | |
faceClient.Endpoint = ENDPPOINT; | |
} |
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 async Task<List<DetectedFaceExtended>> GetFaces(MediaFile image) | |
{ | |
List<DetectedFaceExtended> detectedFaces = null; | |
var faceApiResponseList = await faceClient.Face.DetectWithStreamAsync(image.GetStream(), returnFaceAttributes: new List<FaceAttributeType> { { FaceAttributeType.Emotion }}); | |
DetectedFaceExtended decFace = null; | |
if (faceApiResponseList.Count > 0) | |
{ | |
detectedFaces = new List<DetectedFaceExtended>(); | |
foreach (DetectedFace face in faceApiResponseList) | |
{ |