Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 776 Bytes

README.md

File metadata and controls

51 lines (35 loc) · 776 Bytes

Titanium Notification Banner

A notification banner for Titanium that uses full native API's to modally present messages.

Requirements

  • Titanium 9.0.0+

Android

Add

repositories {
    maven { url "https://jitpack.io" }
}

to the app build.gradle file.

Example

import NotificationBanner from 'ti.notificationbanner';

NotificationBanner.show({
  title: 'Titanium rocks!',
  duration: 2,
  subtitle: 'It seriously does',
  backgroundColor: 'green',
});

Methods

  • show(options)

Properties

  • title (Required)
  • subtitle (Optional)
  • backgroundColor (Optional)
  • duration (Optional)
  • elevation (Optional)
  • onClick: callback function for banner click (Optional)

License

MIT

Author

Hans Knöchel, Lambus GmbH