Share via


SliceSpec.CanRender(SliceSpec) Method

Definition

Indicates that this spec can be used to render the specified spec.

[Android.Runtime.Register("canRender", "(Landroid/app/slice/SliceSpec;)Z", "", ApiSince=28)]
public bool CanRender (Android.App.Slices.SliceSpec candidate);
[<Android.Runtime.Register("canRender", "(Landroid/app/slice/SliceSpec;)Z", "", ApiSince=28)>]
member this.CanRender : Android.App.Slices.SliceSpec -> bool

Parameters

candidate
SliceSpec

candidate format of data.

Returns

true if versions are compatible.

Attributes

Remarks

Indicates that this spec can be used to render the specified spec.

Rendering support is not bi-directional (e.g. Spec v3 can render Spec v2, but Spec v2 cannot render Spec v3).

Java documentation for android.app.slice.SliceSpec.canRender(android.app.slice.SliceSpec).

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