Język

SliceMetrics Constructors

Definition

Overloads

Name Description
SliceMetrics(Context, Uri)

An object to be used throughout the life of a slice to register events.

SliceMetrics(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

SliceMetrics(Context, Uri)

An object to be used throughout the life of a slice to register events.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/net/Uri;)V", "", ApiSince=28)]
public SliceMetrics(Android.Content.Context context, Android.Net.Uri uri);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/net/Uri;)V", "", ApiSince=28)>]
new Android.App.Slices.SliceMetrics : Android.Content.Context * Android.Net.Uri -> Android.App.Slices.SliceMetrics

Parameters

context
Context

The context supplied for the metrics object. The platform implementation does not use this argument.

uri
Uri

The slice URI whose authority and path identify the recorded metrics.

Attributes

Remarks

An object to be used throughout the life of a slice to register events.

Java documentation for android.app.slice.SliceMetrics.SliceMetrics(android.content.Context, android.net.Uri).

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

SliceMetrics(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

protected SliceMetrics(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.Slices.SliceMetrics : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.Slices.SliceMetrics

Parameters

javaReference
IntPtr

nativeint

A JNI reference to the Java object.

transfer
JniHandleOwnership

Specifies whether ownership of the JNI reference transfers to this instance.

Remarks

The runtime calls this constructor to create a managed representation of an existing Java object.

Applies to