Düzenle

Aracılığıyla paylaş


CKContainer.DiscoverAllIdentities Method

Definition

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

[Foundation.Export("discoverAllIdentitiesWithCompletionHandler:")]
[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 void DiscoverAllIdentities (Action<CloudKit.CKUserIdentity[],Foundation.NSError> completionHandler);
abstract member DiscoverAllIdentities : Action<CloudKit.CKUserIdentity[], Foundation.NSError> -> unit
override this.DiscoverAllIdentities : Action<CloudKit.CKUserIdentity[], Foundation.NSError> -> unit

Parameters

completionHandler
Action<CKUserIdentity[],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