diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-210A181E-5EB6-4626-9E7E-8761A2272D79.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-210A181E-5EB6-4626-9E7E-8761A2272D79.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,33 @@ + + + + + +Set +a view as a default view +

An application can set a specific registered view as the +default view. The default view is displayed when the application is launched +or brought to the foreground. Also, a system default view can be set, which +is used when an unrecoverable error occurs during view activation or when +the application exits.

    +
  • Application default view

    CCoeAppUi::SetDefaultViewL( MCoeView& aView )

    Sets +the specified view as the default view for the application. If the application +already has the default view set, then the specified view overrides existing +default view.

  • +
  • System default view.

      +
    • CCoeAppUi::SetSystemDefaultViewL( const TVwsViewId & )

      Sets +the system default view for default screen device mode, which is 0.

    • +
    • CCoeAppUi::SetSystemDefaultViewL( const TVwsViewId &,TInt )

      Sets +the specified view as system default view for a given screen mode.

    • +
    An application must have the ECapabilityWriteDeviceData capability +to set a view as a system default view. If the system default view is already +set, then the specified view overrides existing default view.
  • +

The following code snippet shows setting a view as the default view +for an application:

iCCoeAppUi->SetDefaultViewL( iViewId );
+
\ No newline at end of file