Contents

testingModes

A mode that gives the File Provider extension more control over the system’s behavior during testing.

Declaration

var testingModes: NSFileProviderDomain.TestingModes { get set }

Discussion

By default, the value is [] (Swift) or 0 (Objective-C) and all testing modes are disabled. To enable a testing mode, assign its value to this property. You can combine multiple modes:

myDomain.testingModes = [.alwaysEnabled, .interactive]

The system registers the domain’s testing mode when you add the domain by calling add(_:completionHandler:). You can’t change the test mode after you add the domain.

See Also

Testing