filenameExtension(_:isValidForType:)
Returns whether the specified filename extension is appropriate for the Uniform Type Identifier (UTI).
Declaration
func filenameExtension(_ filenameExtension: String, isValidForType typeName: String) -> BoolParameters
- filenameExtension:
A string containing the filename extension.
- typeName:
A string containing the UTI.
Return Value
true if fileNameExtension is a valid extension for typeName; otherwise, false.
Discussion
You can safely call this method from any thread of your app.
See Also
Deprecated methods
open(_:options:configuration:)open(_:withApplicationAt:options:configuration:)openFile(_:)openFile(_:withApplication:)openFile(_:withApplication:andDeactivate:)openFile(_:from:at:in:)launchApplication(_:)launchApplication(_:showIcon:autolaunch:)launchApplication(at:options:configuration:)performFileOperation(_:source:destination:files:tag:)fullPath(forApplication:)absolutePathForApplication(withBundleIdentifier:)launchApplication(withBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifier:)open(_:withAppBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifiers:)mountedRemovableMedia()