/**@class android.os.Looper.Observer {@hide} */ var Observer = { /**Called right before a message is dispatched. <p> The token type is not specified to allow the implementation to specify its own type. @return {Object {java.lang.Object}} a token used for collecting telemetry when dispatching a single message. The token token must be passed back exactly once to either {@link Observer#messageDispatched} or {@link Observer#dispatchingThrewException} and must not be reused again. */ messageDispatchStarting : function( ) {}, /**Called when a message was processed by a Handler. @param {Object {Object}} token Token obtained by previously calling {@link Observer#messageDispatchStarting} on the same Observer instance. @param {Object {Message}} msg The message that was dispatched. */ messageDispatched : function( ) {}, /**Called when an exception was thrown while processing a message. @param {Object {Object}} token Token obtained by previously calling {@link Observer#messageDispatchStarting} on the same Observer instance. @param {Object {Message}} msg The message that was dispatched and caused an exception. @param {Object {Exception}} exception The exception that was thrown. */ dispatchingThrewException : function( ) {}, };