Annotation Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Annotation(Parcel) |
Creates an annotation from its stored parcel data. |
| Annotation(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| Annotation(String, String) |
Creates an annotation that stores the specified key and value. |
Annotation(Parcel)
Creates an annotation from its stored parcel data.
[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")]
public Annotation(Android.OS.Parcel? src);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")>]
new Android.Text.Annotation : Android.OS.Parcel -> Android.Text.Annotation
Parameters
- src
- Parcel
The parcel from which to read the annotation key and value, in that order.
- Attributes
Remarks
Android reference for android.text.Annotation.Annotation.
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
Annotation(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected Annotation(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Text.Annotation : nativeint * Android.Runtime.JniHandleOwnership -> Android.Text.Annotation
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
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
Annotation(String, String)
Creates an annotation that stores the specified key and value.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public Annotation(string? key, string? value);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Android.Text.Annotation : string * string -> Android.Text.Annotation
Parameters
- key
- String
The key to store in the annotation.
- value
- String
The value to store with the key.
- Attributes
Remarks
Android reference for android.text.Annotation.Annotation.
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.