Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Essentials/src/Accelerometer/Accelerometer.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ public static bool IsSupported
public static IAccelerometer Default =>
defaultImplementation ??= new AccelerometerImplementation();

internal static void SetDefault(IAccelerometer? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IAccelerometer? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Barometer/Barometer.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ public static void Stop()
public static IBarometer Default =>
defaultImplementation ??= new BarometerImplementation();

internal static void SetDefault(IBarometer? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IBarometer? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Battery/Battery.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ public static event EventHandler<EnergySaverStatusChangedEventArgs> EnergySaverS
public static IBattery Default =>
defaultImplementation ??= new BatteryImplementation();

internal static void SetDefault(IBattery? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IBattery? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Browser/Browser.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ public static class Browser
public static IBrowser Default =>
defaultImplementation ??= new BrowserImplementation();

internal static void SetDefault(IBrowser? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IBrowser? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Clipboard/Clipboard.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ public static event EventHandler<EventArgs> ClipboardContentChanged
public static IClipboard Default =>
defaultImplementation ??= new ClipboardImplementation();

internal static void SetDefault(IClipboard? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IClipboard? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Compass/Compass.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ public static bool ShouldDisplayHeadingCalibration
public static ICompass Default =>
defaultImplementation ??= new CompassImplementation();

internal static void SetDefault(ICompass? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(ICompass? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Contacts/Contacts.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ public static Task<IEnumerable<Contact>> GetAllAsync(CancellationToken cancellat
public static IContacts Default =>
defaultImplementation ??= new ContactsImplementation();

internal static void SetDefault(IContacts? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IContacts? implementation) =>
defaultImplementation = implementation;
}
}
6 changes: 5 additions & 1 deletion src/Essentials/src/Email/Email.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ public static Task ComposeAsync(EmailMessage message) =>
public static IEmail Default =>
defaultImplementation ??= new EmailImplementation();

internal static void SetDefault(IEmail? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IEmail? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/FilePicker/FilePicker.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ public static partial class FilePicker
public static IFilePicker Default =>
defaultImplementation ??= new FilePickerImplementation();

internal static void SetDefault(IFilePicker? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IFilePicker? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Flashlight/Flashlight.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ public static Task TurnOffAsync() =>
public static IFlashlight Default =>
defaultImplementation ??= new FlashlightImplementation();

internal static void SetDefault(IFlashlight? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IFlashlight? implementation) =>
defaultImplementation = implementation;
}
}
6 changes: 5 additions & 1 deletion src/Essentials/src/Geocoding/Geocoding.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ public static Task<IEnumerable<Location>> GetLocationsAsync(string address) =>
public static IGeocoding Default =>
defaultImplementation ??= new GeocodingImplementation();

internal static void SetCurrent(IGeocoding? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IGeocoding? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Geolocation/Geolocation.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ public static void StopListeningForeground() =>
public static IGeolocation Default =>
defaultImplementation ??= new GeolocationImplementation();

internal static void SetDefault(IGeolocation? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IGeolocation? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Gyroscope/Gyroscope.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ public static void Stop()
public static IGyroscope Default =>
defaultImplementation ??= new GyroscopeImplementation();

internal static void SetDefault(IGyroscope? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IGyroscope? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/HapticFeedback/HapticFeedback.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ public static bool IsSupported
public static IHapticFeedback Default =>
defaultImplementation ??= new HapticFeedbackImplementation();

internal static void SetDefault(IHapticFeedback? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IHapticFeedback? implementation) =>
defaultImplementation = implementation;
}
}
6 changes: 5 additions & 1 deletion src/Essentials/src/Launcher/Launcher.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ public static Task<bool> TryOpenAsync(Uri uri)
public static ILauncher Default =>
defaultImplementation ??= new LauncherImplementation();

internal static void SetDefault(ILauncher? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(ILauncher? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Magnetometer/Magnetometer.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ public static void Stop()
public static IMagnetometer Default =>
defaultImplementation ??= new MagnetometerImplementation();

internal static void SetDefault(IMagnetometer? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IMagnetometer? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Map/Map.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,11 @@ public static Task<bool> TryOpenAsync(Placemark placemark, MapLaunchOptions opti
public static IMap Default =>
defaultImplementation ??= new MapImplementation();

internal static void SetDefault(IMap? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IMap? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/MediaPicker/MediaPicker.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ public static Task<List<FileResult>> PickVideosAsync(MediaPickerOptions? options
public static IMediaPicker Default =>
defaultImplementation ??= new MediaPickerImplementation();

internal static void SetDefault(IMediaPicker? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IMediaPicker? implementation) =>
defaultImplementation = implementation;
}
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ public static void Stop()
public static IOrientationSensor Default =>
defaultImplementation ??= new OrientationSensorImplementation();

internal static void SetDefault(IOrientationSensor? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IOrientationSensor? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/PhoneDialer/PhoneDialer.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ public static void Open(string number)
public static IPhoneDialer Default =>
defaultImplementation ??= new PhoneDialerImplementation();

internal static void SetDefault(IPhoneDialer? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IPhoneDialer? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Platform/ActivityStateManager.android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ public static class ActivityStateManager
public static IActivityStateManager Default =>
defaultImplementation ??= new ActivityStateManagerImplementation();

internal static void SetDefault(IActivityStateManager? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IActivityStateManager? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Platform/WindowStateManager.ios.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ public static class WindowStateManager
public static IWindowStateManager Default =>
defaultImplementation ??= new WindowStateManagerImplementation();

internal static void SetDefault(IWindowStateManager? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IWindowStateManager? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Platform/windowstateManager.windows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ public static class WindowStateManager
public static IWindowStateManager Default =>
defaultImplementation ??= new WindowStateManagerImplementation();

internal static void SetDefault(IWindowStateManager? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IWindowStateManager? implementation) =>
defaultImplementation = implementation;
}

Expand Down
6 changes: 5 additions & 1 deletion src/Essentials/src/Preferences/Preferences.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,11 @@ internal static string GetPrivatePreferencesSharedName(string feature) =>
public static IPreferences Default =>
defaultImplementation ??= new PreferencesImplementation();

internal static void SetDefault(IPreferences? implementation) =>
/// <summary>
/// Sets the default implementation of this API that is exposed as the static <see cref="Default"/> property.
/// </summary>
/// <param name="implementation">An instance that implements the API, or <see langword="null"/> to reset to the platform default.</param>
public static void SetDefault(IPreferences? implementation) =>
defaultImplementation = implementation;

internal static Type[] SupportedTypes = new Type[]
Expand Down
Loading
Loading