Language

SliceSpec(String, Int32) Constructor

Definition

Creates a slice specification with the given type and revision.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=28)]
public SliceSpec(string type, int revision);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=28)>]
new Android.App.Slices.SliceSpec : string * int -> Android.App.Slices.SliceSpec

Parameters

type
String

The name that identifies the structure of the slice data. Must not be null.

revision
Int32

The revision of that data structure.

Attributes

Remarks

Revisions for the same type are expected to increase and remain backward compatible. A specification can render a candidate with the same type and an equal or lower revision.

Android source for SliceSpec.

Applies to