https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
CFBundleURLTypes
CFBundleURLTypes
(Array
- iOS, macOS) contains an array of dictionaries, each of which describes the URL schemes (http
, ftp
, and so on) supported by the app. The purpose of this key is similar to that of CFBundleDocumentTypes, but it describes URL schemes instead of document types. Each dictionary entry corresponds to a single URL scheme. Table 7 lists the keys to use in each dictionary entry.
Key |
Xcode name |
Type |
Description |
Platforms |
---|---|---|---|---|
CFBundleTypeRole |
“Document Role” |
|
This key specifies the app’s role with respect to the URL type. The value can be |
iOS, macOS |
CFBundleURLIconFile |
“Document Icon File Name” |
|
This key contains the name of the icon image file (minus the extension) to be used for this URL type. |
iOS, macOS |
CFBundleURLName |
“URL identifier” |
|
This key contains the abstract name for this URL type. This is the main way to refer to a particular type. To ensure uniqueness, it is recommended that you use a Java-package style identifier. This name is also used as a key in the |
iOS, macOS |
CFBundleURLSchemes |
“URL Schemes” |
|
This key contains an array of strings, each of which identifies a URL scheme handled by this type. For example, specifying the URL scheme |
iOS, macOS |
To learn about the converse operation in iOS of declaring the URL schemes an app can open, read the description of the LSApplicationQueriesSchemes key.