public class InstallerActionEvent extends InstallerEvent
InstallerContext
.
This event object contains additional information about the duration of the action.
InstallerEventListener
,
Context.addInstallerEventListener(InstallerEventListener)
,
Serialized FormConstructor and Description |
---|
InstallerActionEvent(java.lang.Object source,
Context context,
EventType type,
boolean success,
long duration)
The constructor is called by the framework.
|
Modifier and Type | Method and Description |
---|---|
long |
getDuration()
Returns the duration of the action in milliseconds
|
java.lang.String |
getVerbose()
Return a verbose description of this event.
|
java.lang.String |
toString() |
getContext, getType, setContext, wasSuccessful
public InstallerActionEvent(java.lang.Object source, Context context, EventType type, boolean success, long duration)
source
- the event sourcecontext
- the contexttype
- the event type.success
- whether the operation associated with the event was successfulduration
- the duration in millisecondspublic long getDuration()
public java.lang.String toString()
toString
in class InstallerEvent
public java.lang.String getVerbose()
InstallerEvent
getVerbose
in class InstallerEvent