All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.cesium.createCommand.kt Maven / Gradle / Ivy

There is a newer version: 1.90.0-10
Show newest version
// Automatically generated - do not modify!

package cesium

/**
 * Create a Command from a given function, for use with ViewModels.
 *
 * A Command is a function with an extra `canExecute` observable property to determine
 * whether the command can be executed.  When executed, a Command function will check the
 * value of `canExecute` and throw if false.  It also provides events for when
 * a command has been or is about to be executed.
 * @param [func] The function to execute.
 * @param [canExecute] A boolean indicating whether the function can currently be executed.
 *   Default value - `true`
 * @see Online Documentation
 */
@JsName("\$cesium__createCommand")
external fun createCommand(
    func: Function<*>,
    canExecute: Boolean? = definedExternally,
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy