JobInfo.Builder.SetClipData(ClipData, ActivityFlags) Method
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.
Set a ClipData associated with this Job.
[Android.Runtime.Register("setClipData", "(Landroid/content/ClipData;I)Landroid/app/job/JobInfo$Builder;", "", ApiSince=26)]
public Android.App.Job.JobInfo.Builder? SetClipData(Android.Content.ClipData? clip, Android.Content.ActivityFlags grantFlags);
[<Android.Runtime.Register("setClipData", "(Landroid/content/ClipData;I)Landroid/app/job/JobInfo$Builder;", "", ApiSince=26)>]
member this.SetClipData : Android.Content.ClipData * Android.Content.ActivityFlags -> Android.App.Job.JobInfo.Builder
Parameters
- clip
- ClipData
The new clip to set. May be null to clear the current clip.
- grantFlags
- ActivityFlags
The desired permissions to grant for any URIs. This should be a combination of Intent.FLAG_GRANT_READ_URI_PERMISSION, Intent.FLAG_GRANT_WRITE_URI_PERMISSION, and Intent.FLAG_GRANT_PREFIX_URI_PERMISSION.
Returns
This builder instance.
- Attributes
Remarks
Set a ClipData associated with this Job.
The main purpose of providing a ClipData is to allow granting of URI permissions for data associated with the clip. The exact kind of permission grant to perform is specified through grantFlags.
If the ClipData contains items that are Intents, any grant flags in those Intents will be ignored. Only flags provided as an argument to this method are respected, and will be applied to all Uri or Intent items in the clip (or sub-items of the clip).
Because setting this property is not compatible with persisted jobs, doing so will throw an IllegalArgumentException when build() is called.
Android reference for android.app.job.JobInfo.Builder.setClipData.
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.