CKContainer.DiscoverUserIdentityAsync(CKRecordID) Method

Definition

Retrieves the CKUserIdentity data for the record with specified userRecordID.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual System.Threading.Tasks.Task<CloudKit.CKUserIdentity> DiscoverUserIdentityAsync (CloudKit.CKRecordID userRecordID);
abstract member DiscoverUserIdentityAsync : CloudKit.CKRecordID -> System.Threading.Tasks.Task<CloudKit.CKUserIdentity>
override this.DiscoverUserIdentityAsync : CloudKit.CKRecordID -> System.Threading.Tasks.Task<CloudKit.CKUserIdentity>

Parameters

userRecordID
CKRecordID

Returns

A task that represents the asynchronous DiscoverUserIdentity operation. The value of the TResult parameter is of type System.Action<CloudKit.CKUserIdentity,Foundation.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