isDefaultProtocolClient
abstract fun isDefaultProtocolClient(protocol: String, path: String = definedExternally, args: ReadonlyArray<String> = definedExternally): Boolean(source)
Whether the current executable is the default handler for a protocol (aka URI scheme).
Note: On macOS, you can use this method to check if the app has been registered as the default protocol handler for a protocol. You can also verify this by checking ~/Library/Preferences/com.apple.LaunchServices.plist
on the macOS machine. Please refer to Apple's documentation for details.
The API uses the Windows Registry and LSCopyDefaultHandlerForURLScheme
internally.