Home > Language Reference > Classes > Telephony

RegisterNotify Method

Registers a notification request.

Syntax

Public Sub RegisterNotify(ByVal eService As HbPhoneServices)

ParameterDescription
eServiceEvent classes to be notified of.

Remarks

The RegisterNotify method registers a notification request for the specified event classes. After this method returns, your application will be notified of any subsequent phone event that falls into the requested classes throught the PhoneEvent launch code.

The eService parameter specifies the event classes you wish to be notified of. It can be any combination of the following values:

ConstantValue
hbServiceVoice&H0001
hbServiceSMS&H0002
hbServiceActivation&H0004
hbServiceData&H0008
hbServiceIOTA&H0010
hbServiceSIMToolkit&H0020
hbServiceAFLT&H0040
hbServiceMisc&H0080
hbServiceEssentials&H0100
hbServiceMMS&H0200
hbServiceWAP&H0400
hbServiceAll&H07FF

For each class, the phone library sends many real time events, some of them requiring as little overhead as possible before they can be processed. It is therefore advised you only register for events of interest for your application and that you keep your start-up code as small as possible: avoid opening all your databases and loading all your preferences before you are sure this is required, as most of the time the received event won't be the one you expect.

Calling this method cancels any notification request previously registered. You can unregister notification requests using the UnregisterNotify method.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 5.0Only available on smart phone devices.