Register a view with the View Server

CCoeAppUi provides functions for view registration and pseudo-view registration for the application identified by aAppUid . Registering allows a view to participate in the view activities, such as activation, deactivation and their notifications in the View Server.

Note: Views must be registered in the app UI's CCoeAppUi::ConstructL(CCoeAppUi *) .

The following code snippet shows registering a view:

       CNewView* iViewId = new( ELeave ) CNewView ( TVwsViewId( 0xA,0x1 ), iCCoeAppUi );
CleanupStack::PushL( iViewId );
iCCoeAppUi->RegisterViewL( iViewId );