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.
Click to show internal directories.
Click to hide internal directories.