ServiceInfo.ForegroundServiceTypeRemoteMessaging Field

Definition

Caution

This constant will be removed in the future version. Use Android.Content.PM.ForegroundService enum directly instead of this field.

Constant corresponding to remoteMessaging in the android.R.attr#foregroundServiceType attribute.

[Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_REMOTE_MESSAGING", ApiSince=34)]
[Android.Runtime.RequiresPermission("android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.ForegroundService enum directly instead of this field.", true)]
public const Android.Content.PM.ForegroundService ForegroundServiceTypeRemoteMessaging = 512;
[<Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_REMOTE_MESSAGING", ApiSince=34)>]
[<Android.Runtime.RequiresPermission("android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.ForegroundService enum directly instead of this field.", true)>]
val mutable ForegroundServiceTypeRemoteMessaging : Android.Content.PM.ForegroundService

Field Value

Value = 512

Implements

Attributes

Remarks

Constant corresponding to remoteMessaging in the android.R.attr#foregroundServiceType attribute. Messaging use cases which host local server to relay messages across devices.

Java documentation for android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_REMOTE_MESSAGING.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to