com.gtosoft.libvoyager.gui
Class NotificationHelper
java.lang.Object
com.gtosoft.libvoyager.gui.NotificationHelper
public class NotificationHelper
- extends java.lang.Object
This class will help abstract the gory details of displaying a notification in the
notification bar in Android so the calling class can focus on other things.
- Author:
- Brad Hein / GTOSoft.
Constructor Summary |
NotificationHelper(Context yourActivityContext,
Handler yourUIHandler)
|
Method Summary |
boolean |
notifyCheckEngine(java.lang.String infoText,
java.lang.Class clsReviewDTCs,
int checkEngineDrawableResourceID)
Put up a notification that there are DTC's available. |
void |
shutdown()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotificationHelper
public NotificationHelper(Context yourActivityContext,
Handler yourUIHandler)
notifyCheckEngine
public boolean notifyCheckEngine(java.lang.String infoText,
java.lang.Class clsReviewDTCs,
int checkEngineDrawableResourceID)
- Put up a notification that there are DTC's available.
- Parameters:
clsReviewDTCs
- - if the user clicks the DTC notification, we will encarnate this activity classcheckEngineDrawableResourceID
- - the check engine icon, resource ID from R.
- Returns:
shutdown
public void shutdown()