Interface: IAutoLaunchProvider
Makaio Framework / contracts / IAutoLaunchProvider
Interface: IAutoLaunchProvider
Section titled “Interface: IAutoLaunchProvider”Defined in: ../../../packages/contracts/src/capabilities/auto-launch/types.ts:9
Auto-launch capability provider.
Platform packages implement this to manage login items / autostart entries for the current operating system.
Extends
Section titled “Extends”Properties
Section titled “Properties”capabilityId
Section titled “capabilityId”
readonlycapabilityId:"autoLaunch"
Defined in: ../../../packages/contracts/src/capabilities/auto-launch/types.ts:11
Capability identifier — must be 'autoLaunch'.
displayName
Section titled “displayName”
readonlydisplayName:string
Defined in: ../../../packages/contracts/src/capability/types.ts:11
Human-readable name for display in UI
Inherited from
Section titled “Inherited from”ICapabilityProvider.displayName
readonlyid:string
Defined in: ../../../packages/contracts/src/capability/types.ts:9
Unique identifier for this provider instance
Inherited from
Section titled “Inherited from”providerKey?
Section titled “providerKey?”
readonlyoptionalproviderKey?:string
Defined in: ../../../packages/contracts/src/capability/types.ts:17
Stable provider identity used for joins across registries.
Unlike id, this should remain stable across runtime re-registration.
Inherited from
Section titled “Inherited from”ICapabilityProvider.providerKey
Methods
Section titled “Methods”disable()
Section titled “disable()”disable():
Promise<{disabled:boolean;error?:string; }>
Defined in: ../../../packages/contracts/src/capabilities/auto-launch/types.ts:24
Disable auto-launch at login.
Returns
Section titled “Returns”Promise<{ disabled: boolean; error?: string; }>
Whether auto-launch was successfully disabled.
enable()
Section titled “enable()”enable(
hidden?):Promise<{enabled:boolean;error?:string; }>
Defined in: ../../../packages/contracts/src/capabilities/auto-launch/types.ts:18
Enable auto-launch at login.
Parameters
Section titled “Parameters”hidden?
Section titled “hidden?”boolean
Whether the app should start hidden (tray only).
Returns
Section titled “Returns”Promise<{ enabled: boolean; error?: string; }>
Whether auto-launch was successfully enabled.
getStatus()
Section titled “getStatus()”getStatus():
Promise<{enabled:boolean;supported:boolean; }>
Defined in: ../../../packages/contracts/src/capabilities/auto-launch/types.ts:30
Query current auto-launch status.
Returns
Section titled “Returns”Promise<{ enabled: boolean; supported: boolean; }>
Whether auto-launch is enabled and supported.
validate()?
Section titled “validate()?”
optionalvalidate():Promise<{error?:string;valid:boolean; }>
Defined in: ../../../packages/contracts/src/capability/types.ts:22
Optional validation method to check provider configuration/credentials.
Returns
Section titled “Returns”Promise<{ error?: string; valid: boolean; }>
Validation result with optional error message