IT. Expert System.

Android Reference

SmsCbEtwsInfo


android.telephony

Class SmsCbEtwsInfo

  • All Implemented Interfaces:
    Parcelable


    public class SmsCbEtwsInfo
    extends Object
    implements Parcelable
    Contains information elements for a GSM or UMTS ETWS warning notification. Supported values for each element are defined in 3GPP TS 23.041.
    • Field Detail

      • ETWS_WARNING_TYPE_EARTHQUAKE

        public static final int ETWS_WARNING_TYPE_EARTHQUAKE
        ETWS warning type for earthquake.
        See Also:
        Constant Field Values
      • ETWS_WARNING_TYPE_TSUNAMI

        public static final int ETWS_WARNING_TYPE_TSUNAMI
        ETWS warning type for tsunami.
        See Also:
        Constant Field Values
      • ETWS_WARNING_TYPE_EARTHQUAKE_AND_TSUNAMI

        public static final int ETWS_WARNING_TYPE_EARTHQUAKE_AND_TSUNAMI
        ETWS warning type for earthquake and tsunami.
        See Also:
        Constant Field Values
      • ETWS_WARNING_TYPE_TEST_MESSAGE

        public static final int ETWS_WARNING_TYPE_TEST_MESSAGE
        ETWS warning type for test messages.
        See Also:
        Constant Field Values
      • ETWS_WARNING_TYPE_OTHER_EMERGENCY

        public static final int ETWS_WARNING_TYPE_OTHER_EMERGENCY
        ETWS warning type for other emergency types.
        See Also:
        Constant Field Values
      • ETWS_WARNING_TYPE_UNKNOWN

        public static final int ETWS_WARNING_TYPE_UNKNOWN
        Unknown ETWS warning type.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SmsCbEtwsInfo

        public SmsCbEtwsInfo(int warningType,
                     boolean emergencyUserAlert,
                     boolean activatePopup,
                     byte[] warningSecurityInformation)
        Create a new SmsCbEtwsInfo object with the specified values.
    • Method Detail

      • writeToParcel

        public void writeToParcel(Parcel dest,
                         int flags)
        Flatten this object into a Parcel.
        Specified by:
        writeToParcel in interface Parcelable
        Parameters:
        dest - The Parcel in which the object should be written.
        flags - Additional flags about how the object should be written (ignored).
      • isEmergencyUserAlert

        public boolean isEmergencyUserAlert()
        Returns the ETWS emergency user alert flag.
        Returns:
        true to notify terminal to activate emergency user alert; false otherwise
      • isPopupAlert

        public boolean isPopupAlert()
        Returns the ETWS activate popup flag.
        Returns:
        true to notify terminal to activate display popup; false otherwise
      • getPrimaryNotificationTimestamp

        public long getPrimaryNotificationTimestamp()
        Returns the Warning-Security-Information timestamp (GSM primary notifications only). As of Release 10, 3GPP TS 23.041 states that the UE shall ignore this value if received.
        Returns:
        a UTC timestamp in System.currentTimeMillis() format, or 0 if not present
      • getPrimaryNotificationSignature

        public byte[] getPrimaryNotificationSignature()
        Returns the digital signature (GSM primary notifications only). As of Release 10, 3GPP TS 23.041 states that the UE shall ignore this value if received.
        Returns:
        a byte array containing a copy of the primary notification digital signature
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.
      • describeContents

        public int describeContents()
        Describe the kinds of special objects contained in the marshalled representation.
        Specified by:
        describeContents in interface Parcelable
        Returns:
        a bitmask indicating this Parcelable contains no special objects


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 81 / 158775678. Delta: 0.03338 с