/**@class android.app.Notification.MessagingStyle.Message @extends java.lang.Object */ var Message = { /**@hide */ KEY_TEXT : "text", /**Sets a binary blob of data and an associated MIME type for a message. In the case where the platform doesn't support the MIME type, the original text provided in the constructor will be used. @param {String} dataMimeType The MIME type of the content. See <a href="{@docRoot}notifications/messaging.html"> for the list of supported MIME types on Android and Android Wear. @param {Object {Uri}} dataUri The uri containing the content whose type is given by the MIME type. <p class="note"> <ol> <li>Notification Listeners including the System UI need permission to access the data the Uri points to. The recommended ways to do this are:</li> <li>Store the data in your own ContentProvider, making sure that other apps have the correct permission to access your provider. The preferred mechanism for providing access is to use per-URI permissions which are temporary and only grant access to the receiving application. An easy way to create a ContentProvider like this is to use the FileProvider helper class.</li> <li>Use the system MediaStore. The MediaStore is primarily aimed at video, audio and image MIME types, however beginning with Android 3.0 (API level 11) it can also store non-media types (see MediaStore.Files for more info). Files can be inserted into the MediaStore using scanFile() after which a content:// style Uri suitable for sharing is passed to the provided onScanCompleted() callback. Note that once added to the system MediaStore the content is accessible to any app on the device.</li> </ol> @return {Object {android.app.Notification.MessagingStyle.Message}} this object for method chaining */ setData : function( ) {}, /**Get the text to be used for this message, or the fallback text if a type and content Uri have been set */ getText : function( ) {}, /**Get the time at which this message arrived */ getTimestamp : function( ) {}, /**Get the extras Bundle for this message. */ getExtras : function( ) {}, /**Get the text used to display the contact's name in the messaging experience @deprecated use {@link #getSenderPerson()} */ getSender : function( ) {}, /**Get the sender associated with this message. */ getSenderPerson : function( ) {}, /**Get the MIME type of the data pointed to by the Uri */ getDataMimeType : function( ) {}, /**Get the Uri pointing to the content of the message. Can be null, in which case {@see #getText()} is used. */ getDataUri : function( ) {}, /** @return {Boolean} True if the message was generated from {@link Notification#EXTRA_REMOTE_INPUT_HISTORY}. @hide */ isRemoteInputHistory : function( ) {}, /** @hide */ toBundle : function( ) {}, /** @return {Object {java.util.List}} A list of messages read from the bundles. @hide */ getMessagesFromBundleArray : function( ) {}, /** @return {Object {android.app.Notification.MessagingStyle.Message}} The message that is stored in the bundle or null if the message couldn't be resolved. @hide */ getMessageFromBundle : function( ) {}, };