コード例 #1
0
            void DesktopSettingsMenuController::OnAppModeChanged(const AppModes::AppModeChangedMessage& message)
            {
                m_currentAppMode = message.GetAppMode();

                if (!m_viewModel.IsFullyClosed())
                {
                    m_viewModel.Close();
                }
            }
 void MyPinCreationInitiationController::OnAppModeChangedMessage(const AppModes::AppModeChangedMessage& message)
 {
     m_appModeAllowsOpen = message.GetAppMode() == AppModes::SdkModel::WorldMode;
     
     if(m_appModeAllowsOpen)
     {
         m_viewModel.AddToScreen();
     }
     else
     {
         m_viewModel.RemoveFromScreen();
     }
 }
コード例 #3
0
 void InteriorsExplorerViewModel::OnAppModeChanged(const AppModes::AppModeChangedMessage &message)
 {
     m_canAddToScreen = (message.GetAppMode() == AppModes::SdkModel::InteriorMode);
 }
コード例 #4
0
 void InteriorsExplorerController::OnAppModeChanged(const AppModes::AppModeChangedMessage& message)
 {
     m_appMode = message.GetAppMode();
 }