NSUserActivity_MKMapItem.SetMapItem(NSUserActivity, MKMapItem) 方法

定义

将 上的 This mapkit 项设置为 item

[Foundation.Export("setMapItem:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
public static void SetMapItem (this Foundation.NSUserActivity This, MapKit.MKMapItem item);
static member SetMapItem : Foundation.NSUserActivity * MapKit.MKMapItem -> unit

参数

This
NSUserActivity

此方法操作的 NSUserActivity。

item
MKMapItem

新的 mapkit 项。

属性

适用于