Language

Condition.Copy Method

Definition

Creates a copy of this condition through a parcel.

[Android.Runtime.Register("copy", "()Landroid/service/notification/Condition;", "", ApiSince=24)]
public Android.Service.Notification.Condition? Copy();
[<Android.Runtime.Register("copy", "()Landroid/service/notification/Condition;", "", ApiSince=24)>]
member this.Copy : unit -> Android.Service.Notification.Condition

Returns

A new condition reconstructed from the parcel.

Attributes

Exceptions

The condition ID or summary is null, or the state is invalid. On Android 16 (API level 36) and later, or Android 15 (API level 35) when the modes API is enabled, the exception is also thrown if the source is invalid.

Remarks

The parcel constructor validates the condition fields again. On Android 14 (API level 34) and later, it also truncates the URI string and text fields to 1,000 UTF-16 code units.

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