//private NotificationCompat.Action CreateTextReply(NotificationRequest request, string serializedRequest, NotificationAction action) //{ // var pendingIntent = CreateActionIntent(request, serializedRequest, action); // var input = new AndroidX.Core.App.RemoteInput.Builder(AndroidNotificationProcessor.RemoteInputResultKey) // .SetLabel(action.Title) // .Build(); // var iconId = GetIcon(request.Android.IconSmallName); // var nativeAction = new NotificationCompat.Action.Builder(iconId, action.Title, pendingIntent) // .SetAllowGeneratedReplies(true) // .AddRemoteInput(input) // .Build(); // return nativeAction; //} /// <summary> /// /// </summary> /// <param name="type"></param> /// <returns></returns> protected static int ToNativeVisibilityType(AndroidVisibilityType type) { return(type switch { AndroidVisibilityType.Private => (int)NotificationVisibility.Private, AndroidVisibilityType.Public => (int)NotificationVisibility.Public, AndroidVisibilityType.Secret => (int)NotificationVisibility.Secret, _ => throw new ArgumentOutOfRangeException(nameof(type), type, null) });
/// <summary> /// Sphere of visibility of this notification, /// which affects how and when the SystemUI reveals the notification's presence and contents in untrusted situations (namely, on the secure lockscreen). /// </summary> /// <param name="type"></param> /// <returns></returns> public AndroidOptionsBuilder WithVisibilityType(AndroidVisibilityType type) { _options.VisibilityType = type; return(this); }