Table of Contents

Class PermissionOptions

Namespace
Bluetooth.Abstractions.Scanning.Options
Assembly
Bluetooth.Abstractions.Scanning.dll

Represents permission configuration options for scanning operations.

public record PermissionOptions : IEquatable<PermissionOptions>
Inheritance
PermissionOptions
Implements
Inherited Members

Properties

PermissionStrategy

Gets the permission request strategy for this scanning operation.

public PermissionRequestStrategy PermissionStrategy { get; init; }

Property Value

PermissionRequestStrategy

Remarks

Defaults to RequestAutomatically which automatically requests permissions before starting the scan if not already granted.

RequireBackgroundLocation

Gets a value indicating whether background location permission should be requested on Android.

public bool RequireBackgroundLocation { get; init; }

Property Value

bool

Remarks

Platform Support:

  • Android: API 29-30 (Android 10-11) requests ACCESS_BACKGROUND_LOCATION if true; required for background scanning
  • iOS/macOS: Ignored (background permissions handled by Info.plist)
  • Windows: Ignored (no background permission needed)

Defaults to false (foreground scanning only).