Skip to content
Merged
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
5 changes: 4 additions & 1 deletion src/Mono.Android/Android.App/NotificationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ namespace Android.App {

public partial class NotificationManager {

/// <summary>Gets the <see cref="NotificationManager" /> system service from a <see cref="Context" />.</summary>
/// <param name="context">The context used to retrieve the system service.</param>
/// <returns>The <see cref="NotificationManager" /> instance, or <see langword="null" /> if the service is unavailable.</returns>
/// <seealso href="https://developer.android.com/reference/android/app/NotificationManager">Android documentation</seealso>
public static NotificationManager? FromContext (Context context)
{
return context.GetSystemService (Context.NotificationService!) as NotificationManager;
}
}
}