ORANotification Class Reference

Inherits Builder.

Public Member Functions

  ORANotification (final Context context, final String chanelId)
void  setORAContentIntent (final int requestCode, final Intent intent, final int pendingFlag)
void  setORAContentIntent (final int requestCode, final TaskStackBuilder stackBuilder, final int pendingFlag)
NotificationCompat.Builder  setContentTitle (CharSequence title)

Detailed Description

Central class to build Notification

Constructor & Destructor Documentation

◆ ORANotification()

ORANotification ( final Context  context,
final String  chanelId 
)

Constructor.

Automatically sets the when field to System.currentTimeMillis() and the audio stream to the android.app.Notification#STREAM_DEFAULT.

Parameters
context A android.content.Context that will be used to construct the RemoteViews. The Context will not be held past the lifetime of this Builder object.
chanelId The constructed Notification will be posted on this NotificationChannel.

Member Function Documentation

◆ setContentTitle()

NotificationCompat.Builder setContentTitle ( CharSequence  title )

Set the content title

Parameters
title Content title
Returns

◆ setORAContentIntent() [1/2]

void setORAContentIntent ( final int  requestCode,
final Intent  intent,
final int  pendingFlag 
)

Set content intent to notification by passed intent.

Parameters
requestCode Notification request code
intent Intent for passing notification data
pendingFlag Pending flag to open activity via passed flag

◆ setORAContentIntent() [2/2]

void setORAContentIntent ( final int  requestCode,
final TaskStackBuilder  stackBuilder,
final int  pendingFlag 
)

Set content intent to notification by passed tasks stack builder

Parameters
requestCode Notification request code
stackBuilder stackBuilder Task stack builder
pendingFlag pendingFlag Pending flag to open activity via passed flag
 The documentation for this class was generated from the following file:
  • ORANotification.java