NotificationButtonInfo

class omni.kit.notification_manager.NotificationButtonInfo(text, on_complete: Optional[Callable[[None], None]] = None)

Bases: object

Represent a button in notification.

Parameters

text (str) – The button text.

Keyword Arguments

on_complete (Callable[[None], None]) – The button handler when clicked.

Methods

__init__(text[, on_complete])

Attributes

handler

Button handler when clicked

text

Button text

__init__(text, on_complete: Optional[Callable[[None], None]] = None)
property handler

Button handler when clicked

property text

Button text