WKInterfaceController.UpdateUserActivity(String, NSDictionary, NSUrl) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發佈有關目前交接活動的資訊。 至少必須設定 或 webpageURL 的 userInfo 其中一個。
[Foundation.Export("updateUserActivity:userInfo:webpageURL:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UpdateUserActivity(NSUserActivity)' instead.")]
public virtual void UpdateUserActivity(string type, Foundation.NSDictionary userInfo, Foundation.NSUrl webpageURL);
abstract member UpdateUserActivity : string * Foundation.NSDictionary * Foundation.NSUrl -> unit
override this.UpdateUserActivity : string * Foundation.NSDictionary * Foundation.NSUrl -> unit
參數
- type
- String
要繼續的活動類型。 不可以是 null 或空白。
- 屬性
備註
應用程式開發人員可以使用此方法,在連線的裝置或電腦上啟用遞交。
type是活動識別碼,而且在處理應用程式的 info.plist 檔案中必須有對應的專案做為陣列的 NSUserActivityTypes 一部分。 依照慣例,會 type 以網域反向字串開頭,指出原始公司,例如 com.xamarin.SomeApp.SomeVerb 。
userInfo或 webpageURL 必須是非 null 。
webpageURL適用于適當地接續活動的瀏覽器型接續。
userInfo用於裝置型接續。
userInfo可以包含任意索引鍵/值資料,以提供處理應用程式的內容。