Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Latest commit

 

History

History
46 lines (28 loc) · 654 Bytes

File metadata and controls

46 lines (28 loc) · 654 Bytes

CLASS

Banner

Adw.Banner

Properties

handler

The handlers for when the button gets clicked.

isRevealed

Whether the banner is revealed.

Methods

init(_:)

Initialize a banner.

  • Parameter title: The banner's label.

title(_:)

Edit the banner's label.

  • Parameter title: The label.
  • Returns: The banner.

buttonLabel(_:)

Add a button to the banner and set its label.

  • Parameter title: The label.
  • Returns: The banner.

buttonHandler(_:)

Add a handler for the banner's button.

  • Parameter action: The handler.
  • Returns: The banner.

show()

Show the banner.

hide()

Hide the banner.