語言

PendingIntent.Send 方法

定義

多載

名稱 Description
Send(Context, Result, Intent, PendingIntent+IOnFinished, Handler, String, Bundle)

執行與此 PendingIntent 相關的操作,讓呼叫者能指定使用意圖的資訊,並在發送完成時收到通知。

Send(Context, Result, Intent, PendingIntent+IOnFinished, Handler, String)

執行與此 PendingIntent 相關的操作,讓呼叫者能指定使用意圖的資訊,並在發送完成時收到通知。

Send(Context, Result, Intent, PendingIntent+IOnFinished, Handler)

執行與此 PendingIntent 相關的操作,讓呼叫者能指定使用意圖的資訊,並在發送完成時收到通知。

Send(Context, Result, Intent)

執行與此 PendingIntent 相關的操作,讓呼叫者能指定該意圖的資訊。

Send(Result, PendingIntent+IOnFinished, Handler)

執行與此 PendingIntent 相關的操作,讓呼叫者能在發送完成時收到通知。

Send(Bundle)

執行與此待定意圖相關的操作,並提供額外的操作選項。

Send(Result)

執行與此 PendingIntent 相關的操作。

Send()

執行與此 PendingIntent 相關的操作。

Send(Context, Result, Intent, PendingIntent+IOnFinished, Handler, String, Bundle)

執行與此 PendingIntent 相關的操作,讓呼叫者能指定使用意圖的資訊,並在發送完成時收到通知。

[Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/app/PendingIntent$OnFinished;Landroid/os/Handler;Ljava/lang/String;Landroid/os/Bundle;)V", "", ApiSince=23)]
public void Send(Android.Content.Context? context, Android.App.Result code, Android.Content.Intent? intent, Android.App.PendingIntent.IOnFinished? onFinished, Android.OS.Handler? handler, string? requiredPermission, Android.OS.Bundle? options);
[<Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/app/PendingIntent$OnFinished;Landroid/os/Handler;Ljava/lang/String;Landroid/os/Bundle;)V", "", ApiSince=23)>]
member this.Send : Android.Content.Context * Android.App.Result * Android.Content.Intent * Android.App.PendingIntent.IOnFinished * Android.OS.Handler * string * Android.OS.Bundle -> unit

參數

context
Context

情境:來電者的情境。 若意圖也是空,則可能是空。

code
Result

int:回報給待定意圖目標的結果代碼。

intent
Intent

意圖:額外意圖資料。 有關如何應用於原始意圖的資訊,請參見 Intent.fillIn() 使用 null 鍵則不修改原始意圖。 如果旗標 FLAG_IMMUTABLE 是在建立這個待處理意圖時設定的,這個論點將被忽略。

onFinished
PendingIntent.IOnFinished

PendingIntent.OnFinished:當發送完成時,或無回撥時空的物件。

handler
Handler

處理器:處理器識別應進行回調的執行緒。 若為空,回調將從程序的執行緒池中進行。

requiredPermission
String

字串:PendingIntent 收件人必須持有的許可名稱。 此參數僅適用於廣播意圖,對應 Context.sendOrderedBroadcast(Intent, String) 中的權限參數。 若為無效,則無需授權。

options
Bundle

Bundle:呼叫者希望提供更多選項以修改傳送行為。 可從 ActivityOptions 建立,應用於活動開始。 這個值可能是 Null。

屬性

備註

執行與此 PendingIntent 相關的操作,讓呼叫者能指定使用意圖的資訊,並在發送完成時收到通知。 對於意圖參數,PendingIntent 通常會限制此處可提供哪些欄位,取決於 PendingIntent 在 getActivity(Context, int, Intent, int)、getBroadcast(Context, int, Intent, int)或 getService(Context, int, Intent, int)中取得的方式。

Android 參考資料。android.app.PendingIntent.send

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Send(Context, Result, Intent, PendingIntent+IOnFinished, Handler, String)

執行與此 PendingIntent 相關的操作,讓呼叫者能指定使用意圖的資訊,並在發送完成時收到通知。

[Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/app/PendingIntent$OnFinished;Landroid/os/Handler;Ljava/lang/String;)V", "")]
public void Send(Android.Content.Context? context, Android.App.Result code, Android.Content.Intent? intent, Android.App.PendingIntent.IOnFinished? onFinished, Android.OS.Handler? handler, string? requiredPermission);
[<Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/app/PendingIntent$OnFinished;Landroid/os/Handler;Ljava/lang/String;)V", "")>]
member this.Send : Android.Content.Context * Android.App.Result * Android.Content.Intent * Android.App.PendingIntent.IOnFinished * Android.OS.Handler * string -> unit

參數

context
Context

情境:來電者的情境。 若意圖也是空,則可能是空。

code
Result

int:回報給待定意圖目標的結果代碼。

intent
Intent

意圖:額外意圖資料。 有關如何應用於原始意圖的資訊,請參見 Intent.fillIn() 使用 null 鍵則不修改原始意圖。 如果旗標 FLAG_IMMUTABLE 是在建立這個待處理意圖時設定的,這個論點將被忽略。

onFinished
PendingIntent.IOnFinished

PendingIntent.OnFinished:當發送完成時,或無回撥時空的物件。

handler
Handler

處理器:處理器識別應進行回調的執行緒。 若為空,回調將從程序的執行緒池中進行。

requiredPermission
String

字串:PendingIntent 收件人必須持有的許可名稱。 此參數僅適用於廣播意圖,對應 Context.sendOrderedBroadcast(Intent, String) 中的權限參數。 若為無效,則無需授權。

屬性

備註

執行與此 PendingIntent 相關的操作,讓呼叫者能指定使用意圖的資訊,並在發送完成時收到通知。 對於意圖參數,PendingIntent 通常會限制此處可提供哪些欄位,取決於 PendingIntent 在 getActivity(Context, int, Intent, int)、getBroadcast(Context, int, Intent, int)或 getService(Context, int, Intent, int)中取得的方式。

另請參閱:

Android 參考資料。android.app.PendingIntent.send

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Send(Context, Result, Intent, PendingIntent+IOnFinished, Handler)

執行與此 PendingIntent 相關的操作,讓呼叫者能指定使用意圖的資訊,並在發送完成時收到通知。

[Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/app/PendingIntent$OnFinished;Landroid/os/Handler;)V", "")]
public void Send(Android.Content.Context? context, Android.App.Result code, Android.Content.Intent? intent, Android.App.PendingIntent.IOnFinished? onFinished, Android.OS.Handler? handler);
[<Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;Landroid/app/PendingIntent$OnFinished;Landroid/os/Handler;)V", "")>]
member this.Send : Android.Content.Context * Android.App.Result * Android.Content.Intent * Android.App.PendingIntent.IOnFinished * Android.OS.Handler -> unit

參數

context
Context

情境:來電者的情境。 若意圖也是空,則可能是空。

code
Result

int:回報給待定意圖目標的結果代碼。

intent
Intent

意圖:額外意圖資料。 有關如何應用於原始意圖的資訊,請參見 Intent.fillIn() 使用 null 鍵則不修改原始意圖。 如果旗標 FLAG_IMMUTABLE 是在建立這個待處理意圖時設定的,這個論點將被忽略。

onFinished
PendingIntent.IOnFinished

PendingIntent.OnFinished:當發送完成時,或無回撥時空的物件。

handler
Handler

處理器:處理器識別應進行回調的執行緒。 若為空,回調將從程序的執行緒池中進行。

屬性

備註

執行與此 PendingIntent 相關的操作,讓呼叫者能指定使用意圖的資訊,並在發送完成時收到通知。 對於意圖參數,PendingIntent 通常會限制此處可提供哪些欄位,取決於 PendingIntent 在 getActivity(Context, int, Intent, int)、getBroadcast(Context, int, Intent, int)或 getService(Context, int, Intent, int)中取得的方式。

另請參閱:

Android 參考資料。android.app.PendingIntent.send

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Send(Context, Result, Intent)

執行與此 PendingIntent 相關的操作,讓呼叫者能指定該意圖的資訊。

[Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;)V", "")]
public void Send(Android.Content.Context? context, Android.App.Result code, Android.Content.Intent? intent);
[<Android.Runtime.Register("send", "(Landroid/content/Context;ILandroid/content/Intent;)V", "")>]
member this.Send : Android.Content.Context * Android.App.Result * Android.Content.Intent -> unit

參數

context
Context

來電者的背景。

code
Result

結果代碼,要回傳給待定意圖的目標。

intent
Intent

額外意圖資料。 請參閱 Intent#fillIn Intent.fillIn() 有關此如何應用於原始意圖的資訊。 如果 #FLAG_IMMUTABLE 標記是在建立這個待處理意圖時設定的,這個參數將被忽略。

屬性

備註

執行與此 PendingIntent 相關的操作,讓呼叫者能指定該意圖的資訊。

另請參閱:

Android 參考資料。android.app.PendingIntent.send

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Send(Result, PendingIntent+IOnFinished, Handler)

執行與此 PendingIntent 相關的操作,讓呼叫者能在發送完成時收到通知。

[Android.Runtime.Register("send", "(ILandroid/app/PendingIntent$OnFinished;Landroid/os/Handler;)V", "")]
public void Send(Android.App.Result code, Android.App.PendingIntent.IOnFinished? onFinished, Android.OS.Handler? handler);
[<Android.Runtime.Register("send", "(ILandroid/app/PendingIntent$OnFinished;Landroid/os/Handler;)V", "")>]
member this.Send : Android.App.Result * Android.App.PendingIntent.IOnFinished * Android.OS.Handler -> unit

參數

code
Result

int:回報給待定意圖目標的結果代碼。

onFinished
PendingIntent.IOnFinished

PendingIntent.OnFinished:當發送完成時,或無回撥時空的物件。

handler
Handler

處理器:處理器識別應進行回調的執行緒。 若為空,回調將從程序的執行緒池中進行。

屬性

備註

執行與此 PendingIntent 相關的操作,讓呼叫者能在發送完成時收到通知。

另請參閱:

Android 參考資料。android.app.PendingIntent.send

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Send(Bundle)

執行與此待定意圖相關的操作,並提供額外的操作選項。

[Android.Runtime.Register("send", "(Landroid/os/Bundle;)V", "", ApiSince=34)]
public void Send(Android.OS.Bundle? options);
[<Android.Runtime.Register("send", "(Landroid/os/Bundle;)V", "", ApiSince=34)>]
member this.Send : Android.OS.Bundle -> unit

參數

options
Bundle

呼叫者希望提供更多選項以修改傳送行為。 可以從 ActivityOptions 應用到活動開始建立。

屬性

備註

執行與此待定意圖相關的操作,並提供額外的操作選項。

另請參閱:

Android 參考資料。android.app.PendingIntent.send

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Send(Result)

執行與此 PendingIntent 相關的操作。

[Android.Runtime.Register("send", "(I)V", "")]
public void Send(Android.App.Result code);
[<Android.Runtime.Register("send", "(I)V", "")>]
member this.Send : Android.App.Result -> unit

參數

code
Result

結果代碼,要回傳給待定意圖的目標。

屬性

備註

執行與此 PendingIntent 相關的操作。

另請參閱:

Android 參考資料。android.app.PendingIntent.send

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Send()

執行與此 PendingIntent 相關的操作。

[Android.Runtime.Register("send", "()V", "")]
public void Send();
[<Android.Runtime.Register("send", "()V", "")>]
member this.Send : unit -> unit
屬性

備註

執行與此 PendingIntent 相關的操作。

另請參閱:

Android 參考資料。android.app.PendingIntent.send

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於