The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsChange password for current user
The new password
The old password
The result of the change password request
Callback method called with the resolved context instance or undefined.
Reference to the created Context Consumer Controller instance
Subscribe to a context. The callback fires when the context resolves, again if the context is replaced, and can also be invoked with undefined if the context is unprovided or the host disconnects. Use this whenever a controller or element needs the context at setup time — both for ongoing observation and for reading values immediately on resolve. This is the default choice; prefer it over getContext unless the context is only needed inside a later user action.
Delete the current user's avatar
An error if the avatar deletion failed
Disable an MFA provider
The name of the provider to disable
The activation code of the provider to disable
An error if the provider could not be disabled
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Enable an MFA provider
The name of the provider to enable
The activation code of the provider to enable
The secret used to verify the provider's activation code
An error if the provider could not be enabled
Optionaloptions: UmbClassGetContextOptions
Options for resolving the context once, including timeout-related behavior such as preventTimeout.
A Promise resolving to the Context API instance when available, or undefined when applicable.
Retrieve a context once as a Promise. Use this only when the context is first needed inside a user action or event handler that runs later (for example a button click, a property action, or an entity action execute()). For setup-time access — including a single immediate read — use consumeContext instead so the controller lifecycle handles resolution and cleanup. The returned Promise may reject if the context is not found before the default timeout; callers should handle rejection and/or pass preventTimeout in the options when waiting longer is expected.
An Observable to observe from.
Optionalcallback: ObserverCallback<UmbObserverValueType<ObservableType>>
Callback method called when data is changed.
OptionalcontrollerAlias: UmbControllerAlias | null
Define an explicit controller alias. If not defined then one will be generated based on the callback function. If null is parsed no controller alias will be given.
Reference to the created Observer Controller instance.
The API instance to be exposed.
Reference to the created Context Provider Controller instance
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsRequest the current user
The current user data, error and an observable of the current user store
Request the current user's external login providers
The external login providers data, error and an observable of the external login providers store
Request the current user's available MFA login providers
The MFA login providers data, error and an observable of the MFA providers store
Update the current user's profile settings
The ISO code of the language to set for the current user
An error if the profile update failed
Upload an avatar for the current user
The image file to use as avatar
An error if the avatar upload failed
A repository for the current user UmbCurrentUserRepository