Пример #1
0
        public void RequestTrackingAuthorization(Action <AppTrackingTransparencyAuthorizationStatus> completion)
        {
            var requestId = CallbackHandler.AddRequestTrackingAuthorizationCallback(rawAuthorizationStatus =>
            {
                completion(GetAuthorizationStatusFromUnsignedInteger(rawAuthorizationStatus));
            });

            PInvoke.AppTrackingTransparencyManager_RequestTrackingAuthorizationCallback(requestId);
        }