ClipData.Item 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
ClipData.Item(Intent) |
Create an Item consisting of an arbitrary Intent. |
ClipData.Item(Uri) |
Create an Item consisting of an arbitrary URI. |
ClipData.Item(ICharSequence) |
Create an Item consisting of a single block of (possibly styled) text. |
ClipData.Item(String) |
Create an Item consisting of a single block of (possibly styled) text. |
ClipData.Item(ICharSequence, String) |
Create an Item consisting of a single block of (possibly styled) text, with an alternative HTML formatted representation. |
ClipData.Item(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
ClipData.Item(String, String) |
Create an Item consisting of a single block of (possibly styled) text, with an alternative HTML formatted representation. |
ClipData.Item(ICharSequence, Intent, Uri) |
Create a complex Item, containing multiple representations of text, Intent, and/or URI. |
ClipData.Item(String, Intent, Uri) |
Create a complex Item, containing multiple representations of text, Intent, and/or URI. |
ClipData.Item(ICharSequence, String, Intent, Uri) |
Create a complex Item, containing multiple representations of text, HTML text, Intent, and/or URI. |
ClipData.Item(String, String, Intent, Uri) |
Create a complex Item, containing multiple representations of text, HTML text, Intent, and/or URI. |
ClipData.Item(Intent)
Create an Item consisting of an arbitrary Intent.
[Android.Runtime.Register(".ctor", "(Landroid/content/Intent;)V", "")]
public Item (Android.Content.Intent intent);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Intent;)V", "")>]
new Android.Content.ClipData.Item : Android.Content.Intent -> Android.Content.ClipData.Item
Parameters
- intent
- Intent
- Attributes
Remarks
Create an Item consisting of an arbitrary Intent.
Java documentation for android.content.ClipData.Item.ClipData$Item(android.content.Intent)
.
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
ClipData.Item(Uri)
Create an Item consisting of an arbitrary URI.
[Android.Runtime.Register(".ctor", "(Landroid/net/Uri;)V", "")]
public Item (Android.Net.Uri uri);
[<Android.Runtime.Register(".ctor", "(Landroid/net/Uri;)V", "")>]
new Android.Content.ClipData.Item : Android.Net.Uri -> Android.Content.ClipData.Item
Parameters
- uri
- Uri
- Attributes
Remarks
Create an Item consisting of an arbitrary URI.
Java documentation for android.content.ClipData.Item.ClipData$Item(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
ClipData.Item(ICharSequence)
Create an Item consisting of a single block of (possibly styled) text.
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "")]
public Item (Java.Lang.ICharSequence text);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "")>]
new Android.Content.ClipData.Item : Java.Lang.ICharSequence -> Android.Content.ClipData.Item
Parameters
- text
- ICharSequence
- Attributes
Remarks
Create an Item consisting of a single block of (possibly styled) text.
Java documentation for android.content.ClipData.Item.ClipData$Item(java.lang.CharSequence)
.
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
ClipData.Item(String)
Create an Item consisting of a single block of (possibly styled) text.
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "")]
public Item (string text);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "")>]
new Android.Content.ClipData.Item : string -> Android.Content.ClipData.Item
Parameters
- text
- String
- Attributes
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
ClipData.Item(ICharSequence, String)
Create an Item consisting of a single block of (possibly styled) text, with an alternative HTML formatted representation.
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/String;)V", "")]
public Item (Java.Lang.ICharSequence text, string htmlText);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/String;)V", "")>]
new Android.Content.ClipData.Item : Java.Lang.ICharSequence * string -> Android.Content.ClipData.Item
Parameters
- text
- ICharSequence
- htmlText
- String
- Attributes
Remarks
Create an Item consisting of a single block of (possibly styled) text, with an alternative HTML formatted representation. You <em>must</em> supply a plain text representation in addition to HTML text; coercion will not be done from HTML formatted text into plain text.
<strong>Warning:</strong> Use content: URI for sharing large clip data. ClipData.Item doesn't accept an HTML text if it's larger than 800KB.
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
ClipData.Item(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected Item (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.ClipData.Item : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.ClipData.Item
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
ClipData.Item(String, String)
Create an Item consisting of a single block of (possibly styled) text, with an alternative HTML formatted representation.
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/String;)V", "")]
public Item (string text, string htmlText);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/String;)V", "")>]
new Android.Content.ClipData.Item : string * string -> Android.Content.ClipData.Item
Parameters
- text
- String
- htmlText
- String
- Attributes
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
ClipData.Item(ICharSequence, Intent, Uri)
Create a complex Item, containing multiple representations of text, Intent, and/or URI.
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/content/Intent;Landroid/net/Uri;)V", "")]
public Item (Java.Lang.ICharSequence text, Android.Content.Intent intent, Android.Net.Uri uri);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/content/Intent;Landroid/net/Uri;)V", "")>]
new Android.Content.ClipData.Item : Java.Lang.ICharSequence * Android.Content.Intent * Android.Net.Uri -> Android.Content.ClipData.Item
Parameters
- text
- ICharSequence
- intent
- Intent
- uri
- Uri
- Attributes
Remarks
Create a complex Item, containing multiple representations of text, Intent, and/or 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
ClipData.Item(String, Intent, Uri)
Create a complex Item, containing multiple representations of text, Intent, and/or URI.
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/content/Intent;Landroid/net/Uri;)V", "")]
public Item (string text, Android.Content.Intent intent, Android.Net.Uri uri);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/content/Intent;Landroid/net/Uri;)V", "")>]
new Android.Content.ClipData.Item : string * Android.Content.Intent * Android.Net.Uri -> Android.Content.ClipData.Item
Parameters
- text
- String
- intent
- Intent
- uri
- Uri
- Attributes
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
ClipData.Item(ICharSequence, String, Intent, Uri)
Create a complex Item, containing multiple representations of text, HTML text, Intent, and/or URI.
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/String;Landroid/content/Intent;Landroid/net/Uri;)V", "")]
public Item (Java.Lang.ICharSequence text, string htmlText, Android.Content.Intent intent, Android.Net.Uri uri);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/String;Landroid/content/Intent;Landroid/net/Uri;)V", "")>]
new Android.Content.ClipData.Item : Java.Lang.ICharSequence * string * Android.Content.Intent * Android.Net.Uri -> Android.Content.ClipData.Item
Parameters
- text
- ICharSequence
- htmlText
- String
- intent
- Intent
- uri
- Uri
- Attributes
Remarks
Create a complex Item, containing multiple representations of text, HTML text, Intent, and/or URI. If providing HTML text, you <em>must</em> supply a plain text representation as well; coercion will not be done from HTML formatted text into plain text.
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
ClipData.Item(String, String, Intent, Uri)
Create a complex Item, containing multiple representations of text, HTML text, Intent, and/or URI.
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/String;Landroid/content/Intent;Landroid/net/Uri;)V", "")]
public Item (string text, string htmlText, Android.Content.Intent intent, Android.Net.Uri uri);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/String;Landroid/content/Intent;Landroid/net/Uri;)V", "")>]
new Android.Content.ClipData.Item : string * string * Android.Content.Intent * Android.Net.Uri -> Android.Content.ClipData.Item
Parameters
- text
- String
- htmlText
- String
- intent
- Intent
- uri
- Uri
- Attributes
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.