The Logging Service API allows Flash Lite applications to access mobile device logging events such as call logs, messaging logs, and data logs. You can use the Logging Service to create Flash Lite applications that add, read, and delete logging events. For example, you can create Flash Lite applications that:
Automatically delete the records of received calls older than a specified number of days
Create unique records of calls based on criteria such as call duration
Provide useful information to mobile device users such as the number of MB of data sent and received for the day
To create a service
object for the Logging Service API, use Service.Logging to
identify the service provider and IDataSource to identify
the supported interface:
var logging = new Service("Service.Logging", "IDataSource");
The IDataSource interface provides the following
methods:
Use the Add() method to add an entry to the event
log; for example, to create new types of application-specific log entries.
Use the GetList() method to retrieve event details
such as phone number or call duration from the event log.
Use the Delete() method to delete an entry from
the event log.
Use the RequestNotification() method to request
notification of updates to the event log.
Use the Cancel() method to cancel an ongoing asynchronous
call. This method is valid for any asynchronous call made through the Logging
Service API.