ShareActionProvider.SetShareIntent(Intent) Method
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.
Sets an intent with information about the share action.
[Android.Runtime.Register("setShareIntent", "(Landroid/content/Intent;)V", "GetSetShareIntent_Landroid_content_Intent_Handler")]
public virtual void SetShareIntent (Android.Content.Intent? shareIntent);
[<Android.Runtime.Register("setShareIntent", "(Landroid/content/Intent;)V", "GetSetShareIntent_Landroid_content_Intent_Handler")>]
abstract member SetShareIntent : Android.Content.Intent -> unit
override this.SetShareIntent : Android.Content.Intent -> unit
Parameters
- shareIntent
- Intent
The share intent.
- Attributes
Remarks
Sets an intent with information about the share action. Here is a sample for constructing a share intent:
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("image/*");
Uri uri = Uri.fromFile(new File(getFilesDir(), "foo.jpg"));
shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
Java documentation for android.widget.ShareActionProvider.setShareIntent(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.