Appearance
useNotivueInstance
ts
import { useNotivueInstance } from 'notivue'Composable that returns an object with three properties:
isRunning- Readonly ref that indicates whether the instance is running or not.startInstance- Function that starts the instance.stopInstance- Function that stops the instance.
Interfaces
ts
declare function useNotivue(): NotivueInstance
export inteface NotivueInstance {
isRunning: Readonly<Ref<boolean>>
startInstance: () => void
stopInstance: () => void
}