UrlOpenFileHandler

OpenFileHandler, which opens a file based on a base URL. Generate a URL in the format $baseUrl${filePathInProject}${startLineNumberがある場合は "#L${startLineNumber}"} and open the URL using the platform default method (use LocalUriHandler).

For example, to open source code on Github, you can configure the following

val githubOpenFileHandler = UrlOpenFileHandler("https://github.com/me/my-repo/blob/main/")

Inheritors

Constructors

Link copied to clipboard
constructor(baseUrl: String)

Functions

Link copied to clipboard
open override fun configure(): UriHandler

If there is data that needs to be prepared in the Composable function, specify it here.

Link copied to clipboard
open override fun openFile(params: OpenFileHandler.Params<UriHandler>)

Open a file in the project.