RequiredReasonApi class

One of Apple's "required reason API" categories. Apps whose own code calls an API in a category must declare it, with an approved reason, in their PrivacyInfo.xcprivacy — otherwise App Store Connect rejects the upload (ITMS-91053).

See https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api

Constructors

RequiredReasonApi({required String category, required String displayName, required RegExp pattern, required Set<String> validReasons})
const

Properties

category → String
The NSPrivacyAccessedAPIType value, e.g. NSPrivacyAccessedAPICategoryUserDefaults.
final
displayName → String
Human-readable category name for reports.
final
hashCode → int
The hash code for this object.
no setterinherited
pattern → RegExp
Matches a call site in Swift/Objective-C source.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
validReasons → Set<String>
Reason codes Apple accepts for this category.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited