WebviewWindow
Types
Properties
Link copied to clipboard
open override var listeners: ERROR CLASS: Symbol not found for js.objects.ReadonlyRecord<kotlin/String, ERROR CLASS: Symbol not found for js.array.ReadonlyArray<{tauri/apps/api/EventCallback<kotlin/Any?>=} kotlin/Function1<@R|kotlin/ParameterName|(name = String(event)) tauri/apps/api/Event<kotlin/Any?>, kotlin/Unit>>>
Local event listeners.
Functions
Link copied to clipboard
Link copied to clipboard
fun clearAllBrowsingData(): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
Clears all browsing data for this webview.
Link copied to clipboard
fun <T> emitTo(target: EventTarget, event: String, payload: T = definedExternally): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
fun <T> emitTo(target: String, event: String, payload: T = definedExternally): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
Emits an event to all {@link EventTarget|targets} matching the given target.
Link copied to clipboard
fun onDragDropEvent(handler: EventCallback<DragDropEvent>): ERROR CLASS: Symbol not found for js.promise.Promise<{tauri/apps/api/UnlistenFn=} kotlin/Function0<kotlin/Unit>>
Listen to a file drop event. The listener is triggered when the user hovers the selected files on the webview, drops the files or cancels the operation.
Link copied to clipboard
fun reparent(window: String): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
fun reparent(window: WebviewWindow): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
fun reparent(window: Window): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
Moves this webview to the given label.
Link copied to clipboard
fun setAutoResize(autoResize: Boolean): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
Sets whether the webview should automatically grow and shrink its size and position when the parent window resizes.
Link copied to clipboard
open fun setBackgroundColor(color: Color?): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
Specify the webview background color.
Link copied to clipboard
fun setPosition(position: LogicalPosition): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
fun setPosition(position: PhysicalPosition): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
fun setPosition(position: Position): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
Sets the webview position.
Link copied to clipboard
fun setSize(size: LogicalSize): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
fun setSize(size: PhysicalSize): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
fun setSize(size: Size): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
Resizes the webview.