dialog

package
v0.27.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package dialog provides UI dialog implementations for the application layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermissionDialog

type PermissionDialog struct {
	// contains filtered or unexported fields
}

PermissionDialog implements the port.PermissionDialogPresenter interface. It uses a custom PermissionPopup overlay to sidestep the purego ConnectResponse bug and match the app's custom UI style.

func NewPermissionDialog

func NewPermissionDialog(popup *component.PermissionPopup) *PermissionDialog

NewPermissionDialog creates a new permission dialog presenter. The popup is created once and reused for each permission request.

func (*PermissionDialog) ShowPermissionDialog

func (d *PermissionDialog) ShowPermissionDialog(
	ctx context.Context,
	origin string,
	permTypes []entity.PermissionType,
	callback func(result port.PermissionDialogResult),
)

ShowPermissionDialog displays a permission request dialog to the user.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL