Class TelephonyPolicy

Definition

Namespace:
Tizen.Security.DevicePolicyManager
Assembly:
Tizen.Security.DevicePolicyManager.dll

The TelephonyPolicy provides methods to manage telephony policies.

C#
Copy
[Obsolete("Deprecated since API level 11.")] public class TelephonyPolicy : DevicePolicy, IDisposable
Inheritance
object
TelephonyPolicy
Implements
System.IDisposable
Remarks

The TelephonyPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the TelephonyPolicy.

Fields

View Source

MessagingPolicyName

The Text messaging policy name. This represents IsMessagingAllowed(string).

Declaration
C#
Copy
[Obsolete("Deprecated since API level 11.")] public static readonly string MessagingPolicyName
Field Value
Type Description
string
Remarks

This is used in PolicyName.

Methods

View Source

Dispose()

Releases any unmanaged resources used by this object.

Declaration
C#
Copy
[Obsolete("Deprecated since API level 11.")] public void Dispose()
Remarks

The TelephonyPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the TelephonyPolicy.

View Source

Dispose(bool)

Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.

Declaration
C#
Copy
[Obsolete("Deprecated since API level 11.")] protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
bool disposing

If true, disposes any disposable objects. If false, does not dispose disposable objects.

Remarks

The TelephonyPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the TelephonyPolicy.

View Source

~TelephonyPolicy()

A Destructor of TelephonyPolicy.

Declaration
C#
Copy
[Obsolete("Deprecated since API level 11.")] protected ~TelephonyPolicy()
Remarks

The TelephonyPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the TelephonyPolicy.

View Source

IsMessagingAllowed(string)

Checks whether the text messaging is allowed or not.

Declaration
C#
Copy
[Obsolete("Deprecated since API level 11.")] public bool IsMessagingAllowed(string simId)
Parameters
Type Name Description
string simId

SIM identifier

Returns
Type Description
bool

true if the messaging is allowed, false otherwise.

Remarks

The TelephonyPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the TelephonyPolicy.

Exceptions
Type Condition
System.ArgumentException

Thrown when failed because of invalid parameter.

System.TimeoutException

Thrown when failed because of timeout.

Events

View Source

MessagingPolicyChanged

The MessagingPolicyChanged event is raised when the messaging policy is changed.

Declaration
C#
Copy
[Obsolete("Deprecated since API level 11.")] public event EventHandler<PolicyChangedEventArgs> MessagingPolicyChanged
Event Type
Type Description
System.EventHandler<TEventArgs><PolicyChangedEventArgs>
Remarks

This event will be removed automatically when TelephonyPolicy is destroyed.

Implements

System.IDisposable