One Logo Pool Ball
WebKit · IOS API REFERENCE

WebPage.DeviceSensorAuthorization

struct · iOS 26.0+ · SDK 27.1

struct DeviceSensorAuthorization

A type that describes the authorization permissions policy for the device's sensors a web resource may access.

Members (1)

init · iOS 26.0+

init

TypeScript
static init(decision: WKPermissionDecision): Promise<WebPage_DeviceSensorAuthorization>
Swift declaration
init(decision: WKPermissionDecision)

A convenience initializer to create a DeviceSensorAuthorization that always uses the same permission decision.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

WebPage.DeviceSensorAuthorization.init(decisionHandler:)

This Swift callback must itself suspend asynchronously. (nonthrowing, so a rejected promise cannot reach swift)

All WebKit types →