setAsDefaultForExtension

open fun setAsDefaultForExtension(extension: String): <Error class: unknown class><Boolean>

Sets the application as the default handler for the given file extension.

Return

true on success, false on error.

Parameters

extension

a string containing the file extension (without the dot).