This file contains hidden or 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 visibleViewController: UIViewController? { | |
let sceneDelegate = UIApplication.shared.connectedScenes.first?.delegate as? SceneDelegate | |
guard let rootViewController = sceneDelegate?.window?.rootViewController else { | |
return nil | |
} | |
return getVisibleViewController(rootViewController) | |
} | |
private func getVisibleViewController(_ rootViewController: UIViewController) -> UIViewController? { |
This file contains hidden or 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
import Foundation | |
import WebKit | |
final class WebCacheCleaner { | |
class func clean() { | |
HTTPCookieStorage.shared.removeCookies(since: Date.distantPast) | |
print("[WebCacheCleaner] All cookies deleted") | |
WKWebsiteDataStore.default().fetchDataRecords(ofTypes: WKWebsiteDataStore.allWebsiteDataTypes()) { records in |
This file contains hidden or 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 static FusedLocationProviderClient GetFusedLocationProviderClient(Android.App.Activity activity); | |
public static FusedLocationProviderClient GetFusedLocationProviderClient(Context context); |
This file contains hidden or 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 static ActivityIdentificationService GetService(Android.App.Activity activity); | |
public static ActivityIdentificationService GetService(Context context); |
This file contains hidden or 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="com.huawei.hms.permission.ACTIVITY_RECOGNITION" /> | |
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" /> |
This file contains hidden or 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"/> | |
//For Android 10 and higher | |
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> | |
<uses-permission android:name=="android.permission.ACCESS_MOCK_LOCATION"/> |
This file contains hidden or 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 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); |
This file contains hidden or 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 hidden or 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 const int DwellGeofenceConversion = 4; | |
public const int EnterGeofenceConversion = 1; | |
public const int ExitGeofenceConversion = 2; | |
public const long GeofenceNeverExpire = -1; |
This file contains hidden or 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 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(); |
NewerOlder