Android的IntentSender,IntentSender.SendIntent Method (Android.Content) | Microsoft Docs

Perform the operation associated with this IntentSender, allowing the

caller to specify information about the Intent to use and be notified

when the send has completed.

[Android.Runtime.Register("sendIntent", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/content/IntentSender$OnFinished;Landroid/os/Handler;Ljava/lang/String;)V", "GetSendIntent_Landroid_content_Context_ILandroid_content_Intent_Landroid_content_IntentSender_OnFinished_Landroid_os_Handler_Ljava_lang_String_Handler", ApiSince=14)]

public virtual void SendIntent (Android.Content.Context context, Android.App.Result code, Android.Content.Intent intent, Android.Content.IntentSender.IOnFinished onFinished, Android.OS.Handler handler, string requiredPermission);

abstract member SendIntent : Android.Content.Context * Android.App.Result * Android.Content.Intent * Android.Content.IntentSender.IOnFinished * Android.OS.Handler * string -> unit

override this.SendIntent : Android.Content.Context * Android.App.Result * Android.Content.Intent * Android.Content.IntentSender.IOnFinished * Android.OS.Handler * string -> unit

Parameters

context

intent

Result code to supply back to the IntentSender's target.

intent

Additional Intent data. See FillIn(Intent, FillInFlags) for information on how this is applied to the

original Intent. Use null to not modify the original Intent.

The object to call back on when the send has

completed, or null for no callback.

handler

Handler identifying the thread on which the callback

should happen. If null, the callback will happen from the thread

pool of the process.

requiredPermission

Name of permission that a recipient of the PendingIntent

is required to hold. This is only valid for broadcast intents, and

corresponds to the permission argument in

SendBroadcast(Intent, String).

If null, no permission is required.

Exceptions

Throws CanceledIntentException if the IntentSender

is no longer allowing more intents to be sent through it.

Remarks

Portions of this page are modifications based on work created and shared by the

Applies to

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值