ServiceInfo.ForegroundServiceTypeDataSync Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This constant will be removed in the future version. Use Android.Content.PM.ForegroundService enum directly instead of this field.
Constant corresponding to dataSync
in
the android.R.attr#foregroundServiceType
attribute.
[Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_DATA_SYNC", ApiSince=29)]
[Android.Runtime.RequiresPermission("android.permission.FOREGROUND_SERVICE_DATA_SYNC")]
[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 ForegroundServiceTypeDataSync = 1;
[<Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_DATA_SYNC", ApiSince=29)>]
[<Android.Runtime.RequiresPermission("android.permission.FOREGROUND_SERVICE_DATA_SYNC")>]
[<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 ForegroundServiceTypeDataSync : Android.Content.PM.ForegroundService
Field Value
Value = 1Implements
- Attributes
Remarks
Constant corresponding to dataSync
in the android.R.attr#foregroundServiceType
attribute. Data(photo, file, account) upload/download, backup/restore, import/export, fetch, transfer over network between device and cloud.
<p class="note"> Use the android.app.job.JobInfo.Builder#setDataTransfer
API for data transfers that can be deferred until conditions are ideal for the app or device. </p>
Java documentation for android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC
.
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.