語言

Instrumentation.ActivityResult(Result, Intent) 建構函式

定義

建立一個新的活動結果。

[Android.Runtime.Register(".ctor", "(ILandroid/content/Intent;)V", "")]
public ActivityResult(Android.App.Result resultCode, Android.Content.Intent? resultData);
[<Android.Runtime.Register(".ctor", "(ILandroid/content/Intent;)V", "")>]
new Android.App.Instrumentation.ActivityResult : Android.App.Result * Android.Content.Intent -> Android.App.Instrumentation.ActivityResult

參數

resultCode
Result

結果程式碼會傳回原始活動,通常是RESULT_CANCELED或RESULT_OK

resultData
Intent

這些資料會傳回原始活動。

屬性

備註

建立一個新的活動結果。 更多資訊請參見 Activity.setResult。

Android 參考資料。android.app.Instrumentation.ActivityResult.ActivityResult

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

適用於