答案 0 :(得分:0)
要暂停Cobalt,请发送kSbEventTypeSuspend
事件。请注意,您只能在特定状态下调度暂停事件,即事件序列应为kSbEventTypeStart
- > kSbEventTypePause
- > kSbEventTypeSuspend
。见https://cobalt.googlesource.com/cobalt/+/master/src/starboard/shared/starboard/application.cc#105