fn CommandPermissionError::not_equal(x : CommandPermissionError, y : CommandPermissionError) -> Booltype AppCommandHostasync fn AppCommandHost::dispatch_ipc(self : AppCommandHost, request : IpcOpRequest) -> IpcOpResponseasync fn AppCommandHost::dispatch_ipc_with_context(self : AppCommandHost, context : AppCommandRequestContext, request : IpcOpRequest) -> IpcOpResponsefn[Payload : FromJson, Reply : ToJson] AppCommandHost::op(self : AppCommandHost, name : String, callback : (Payload) -> Reply raise?) -> Unit raise OpRegistrationErrorfn[Payload : FromJson, Reply : ToJson] AppCommandHost::op_async(self : AppCommandHost, name : String, callback : async (Payload) -> Reply) -> Unit raise OpRegistrationErrorfn[Payload : FromJson, Reply : ToJson] AppCommandHost::op_async_with_context(self : AppCommandHost, name : String, callback : async (AppCommandRequestContext, Payload) -> Reply) -> Unit raise OpRegistrationErrorpub struct AppCommandRequestContext {
window : CommandWindow?
window_id : String
source_origin : String
page_instance : String?
permission_extension : String?
permission_scope_value : Json?
tasks : TaskGroup[Unit]
wake_signal : RuntimeWakeSignal
emit_event : async (ContractRoute, String, Json) -> Unit noraise
locale_preferences : LocalePreferences
}async fn[Payload : ToJson] AppCommandRequestContext::emit(self : AppCommandRequestContext, event : Event[Payload], payload : Payload) -> Unitfn AppCommandRequestContext::permission_scope(self : AppCommandRequestContext, extension_id : String) -> Json raise CommandPermissionErrorasync fn AppCommandRequestContext::wait_for_wake(self : AppCommandRequestContext, revision : Int64) -> Unitpub struct CommandWindow {
show_message_dialog : async (String?, String, String) -> Unit
show_confirm_dialog : async (String?, String, String) -> Bool
open_file_dialog : async (String?, String?) -> String?
save_file_dialog : async (String?, String?) -> String?
choose_directory_dialog : async (String?, String?) -> String?
}async fn CommandWindow::choose_directory(self : CommandWindow, title : String?, path : String?) -> String?async fn CommandWindow::confirm(self : CommandWindow, title : String?, message : String, level : String) -> Boolasync fn CommandWindow::show_message(self : CommandWindow, title : String?, message : String, level : String) -> Unittype MbtProcessHostasync fn MbtProcessHost::dispatch_async(self : MbtProcessHost, request : IpcOpRequest) -> IpcOpResponseasync fn MbtProcessHost::dispatch_async_with_context(self : MbtProcessHost, context : AppCommandRequestContext, request : IpcOpRequest) -> IpcOpResponsefn[Payload : FromJson, Reply : ToJson] MbtProcessHost::op(self : MbtProcessHost, name : String, callback : (Payload) -> Reply raise?) -> Unit raise OpRegistrationErrorfn[Payload : FromJson, Reply : ToJson] MbtProcessHost::op_async(self : MbtProcessHost, name : String, callback : async (Payload) -> Reply) -> Unit raise OpRegistrationErrorfn[Payload : FromJson, Reply : ToJson] MbtProcessHost::op_async_with_context(self : MbtProcessHost, name : String, callback : async (AppCommandRequestContext, Payload) -> Reply) -> Unit raise OpRegistrationErrorfn moonbit_global_name() -> Stringfn moonbit_op_binding_name() -> StringMoonBit bindings for the Proton native desktop runtime.
Dependencies