Language

Slice.Builder.SetCallerNeeded(Boolean) Method

Definition

Tells the system whether for this slice the return value of SliceProvider.onBindSlice(Uri,java.util.Set) may be different depending on SliceProvider.getCallingPackage() and should not be cached for multiple apps.

[Android.Runtime.Register("setCallerNeeded", "(Z)Landroid/app/slice/Slice$Builder;", "GetSetCallerNeeded_ZHandler", ApiSince=28)]
public virtual Android.App.Slices.Slice.Builder? SetCallerNeeded(bool callerNeeded);
[<Android.Runtime.Register("setCallerNeeded", "(Z)Landroid/app/slice/Slice$Builder;", "GetSetCallerNeeded_ZHandler", ApiSince=28)>]
abstract member SetCallerNeeded : bool -> Android.App.Slices.Slice.Builder
override this.SetCallerNeeded : bool -> Android.App.Slices.Slice.Builder

Parameters

callerNeeded
Boolean

Returns

Attributes

Remarks

Tells the system whether for this slice the return value of SliceProvider.onBindSlice(Uri,java.util.Set) may be different depending on SliceProvider.getCallingPackage() and should not be cached for multiple apps.

Android reference for android.app.slice.Slice.Builder.setCallerNeeded.

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