CKContainer.DiscoverAllIdentitiesAsync Method

Definition

Fetches all user records in the CKContainer that correspond to an entry in the user's address book.

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

Returns

A task that represents the asynchronous DiscoverAllIdentities 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