ToiResourceService Interface Reference

Description

Technical Preview:
This interface is a TECHNICAL PREVIEW, it may change. This service expose the free system resources. This service is just for tracking the resources and notifying the application as and when there is any change in free resources through ToiResourceObserver.
Service:
This is a service and can be accessed through toi.resourceService

import "ToiResourceService.idl";

Inheritance diagram for ToiResourceService:
ToiEventTarget

List of all members.

Public Member Functions

TToiResourceInfoSequence getResources ()

Public Attributes

Events
const long ON_FREE_RESOURCES_CHANGED = 1500
TToiResource
const TToiResource RESOURCE_TUNER = 0
const TToiResource RESOURCE_NETWORK_INPUT = 1
TToiAvailability
const TToiAvailability AVAILABILITY_ALLOCATED = 0
const TToiAvailability AVAILABILITY_FREE = 1

Public Types

typedef long TToiResource
typedef long TToiAvailability
typedef sequence
< ToiResourceServiceResourceInfo
TToiResourceInfoSequence

Member Typedef Documentation

Indicates the availability/Status of a resource.

Different kind of system resources.


Member Function Documentation

TToiResourceInfoSequence ToiResourceService::getResources ( )

Get the information of all the system resources.

Return values:
resourcesAll available and allocated resources.

Member Data Documentation

This constant can also be accessed from toi.consts.ToiResourceService.AVAILABILITY_ALLOCATED.

This constant can also be accessed from toi.consts.ToiResourceService.AVAILABILITY_FREE.

This is an Event identifier for ToiResourceFreeResourcesChangedEvent.

This constant can also be accessed from toi.consts.ToiResourceService.ON_FREE_RESOURCES_CHANGED.

Network input resource.

This constant can also be accessed from toi.consts.ToiResourceService.RESOURCE_NETWORK_INPUT.

This constant can also be accessed from toi.consts.ToiResourceService.RESOURCE_TUNER.