Bearbeiten

Freigeben über


CKContainer.DiscoverUserInfo Method

Definition

Overloads

DiscoverUserInfo(CKRecordID, Action<CKDiscoveredUserInfo,NSError>)

Developers should not use this deprecated method.

DiscoverUserInfo(String, Action<CKDiscoveredUserInfo,NSError>)

Developers should not use this deprecated method.

DiscoverUserInfo(CKRecordID, Action<CKDiscoveredUserInfo,NSError>)

Developers should not use this deprecated method.

[Foundation.Export("discoverUserInfoWithUserRecordID:completionHandler:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'DiscoverUserIdentity' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.None, "Use 'DiscoverUserIdentity' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DiscoverUserInfo (CloudKit.CKRecordID userRecordId, Action<CloudKit.CKDiscoveredUserInfo,Foundation.NSError> completionHandler);
abstract member DiscoverUserInfo : CloudKit.CKRecordID * Action<CloudKit.CKDiscoveredUserInfo, Foundation.NSError> -> unit
override this.DiscoverUserInfo : CloudKit.CKRecordID * Action<CloudKit.CKDiscoveredUserInfo, Foundation.NSError> -> unit

Parameters

userRecordId
CKRecordID
completionHandler
Action<CKDiscoveredUserInfo,NSError>
Attributes

Remarks

The "identity discovery" methods in CKContainer allow the developer to implement "friends who also use" functionality in their apps. These methods can be used to find user records in the CloudKit container that correspond to entries in the user's address book. No information about the user, beyond the fact that they use the app and agreed to share that status, is available from the CKContainer.

Applies to

DiscoverUserInfo(String, Action<CKDiscoveredUserInfo,NSError>)

Developers should not use this deprecated method.

[Foundation.Export("discoverUserInfoWithEmailAddress:completionHandler:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'DiscoverUserIdentityWithEmailAddress' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.None, "Use 'DiscoverUserIdentityWithEmailAddress' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DiscoverUserInfo (string email, Action<CloudKit.CKDiscoveredUserInfo,Foundation.NSError> completionHandler);
abstract member DiscoverUserInfo : string * Action<CloudKit.CKDiscoveredUserInfo, Foundation.NSError> -> unit
override this.DiscoverUserInfo : string * Action<CloudKit.CKDiscoveredUserInfo, Foundation.NSError> -> unit

Parameters

email
String
completionHandler
Action<CKDiscoveredUserInfo,NSError>
Attributes

Applies to