Class Modem

    Definition

    Namespace:
    Tizen.Telephony
    Assembly:
    Tizen.Telephony.dll

    This class provides APIs to obtain information from the modem. It includes properties such as Imei, which allows users to retrieve the International Mobile Station Equipment Identity (IMEI) of a mobile phone. By utilizing these features, developers can gather valuable information about the modem and incorporate it into their applications effectively.

    [Obsolete("Deprecated since API13, will be removed in API15.")]
    public class Modem
    Inheritance
    object
    Modem

    Constructors

    View Source

    Modem(SlotHandle)

    The Modem class constructor.

    Declaration
    [Obsolete("Deprecated since API13, will be removed in API15.")]
    public Modem(SlotHandle handle)
    Parameters
    Type Name Description
    SlotHandle handle

    SlotHandle received in the Manager.Init API.

    Exceptions
    Type Condition
    System.NotSupportedException

    The required feature is not supported.

    System.ArgumentNullException

    This exception occurs if the handle provided is null.

    Properties

    View Source

    CurrentPowerStatus

    Gets the power status of the modem.

    Declaration
    [Obsolete("Deprecated since API13, will be removed in API15.")]
    public Modem.PowerStatus CurrentPowerStatus { get; }
    Property Value
    Type Description
    Modem.PowerStatus

    The Modem power status (0=on,1=off,2=reset,3=low).

    View Source

    Imei

    Gets the IMEI (International Mobile Station Equipment Identity) of a mobile phone. The IMEI number is used by a GSM network to identify valid devices and therefore, can be used for stopping a stolen phone from accessing that network.

    Declaration
    [Obsolete("Deprecated since API13, will be removed in API15.")]
    public string Imei { get; }
    Property Value
    Type Description
    string

    The International Mobile Station Equipment Identity. Empty string if unable to complete the operation.

    Remarks

    To avoid the unexpected behavior of old version applications that have http://tizen.org/privilege/telephony privilege. There is an exceptional handling in case of permission denied. For an application with API version 6 or higher, if an application doesn't have http://tizen.org/privilege/securesysteminfo privilege, it sets with empty string. For an application with API version lower than 6. if an application has http://tizen.org/privilege/telephony privilege, it sets with a pseudo value.

    View Source

    Meid

    Gets the MEID (Mobile Equipment Identifier) of a mobile phone (for CDMA).

    Declaration
    [Obsolete("Deprecated since API13, will be removed in API15.")]
    public string Meid { get; }
    Property Value
    Type Description
    string

    The Mobile Equipment Identifier. Empty string if unable to complete the operation.

    Remarks

    To avoid the unexpected behavior of old version applications that have http://tizen.org/privilege/telephony privilege. There is an exceptional handling in case of permission denied. For an application with API version 6 or higher, if an application doesn't have http://tizen.org/privilege/securesysteminfo privilege, it sets with empty string. For an application with API version lower than 6. if an application has http://tizen.org/privilege/telephony privilege, it sets with a pseudo value.

    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX