共用方式為


HKHealthStore.RequestAuthorizationToShare 方法

定義

要求自動調整以儲存和讀取使用者資料,並在決定之後執行動作。

[Foundation.Export("requestAuthorizationToShareTypes:readTypes:completion:")]
public virtual void RequestAuthorizationToShare (Foundation.NSSet typesToShare, Foundation.NSSet typesToRead, Action<bool,Foundation.NSError> completion);
abstract member RequestAuthorizationToShare : Foundation.NSSet * Foundation.NSSet * Action<bool, Foundation.NSError> -> unit
override this.RequestAuthorizationToShare : Foundation.NSSet * Foundation.NSSet * Action<bool, Foundation.NSError> -> unit

參數

typesToShare
NSSet
typesToRead
NSSet
completion
Action<Boolean,NSError>

作業完成時要執行的處理常式。

屬性

適用於