| 24 | } |
| 25 | |
| 26 | Mode getMode(const Bundle& bundle) { |
| 27 | int32_t mode = static_cast<int32_t>(Mode::ExistingOrNew); |
| 28 | bundle.optInt32("mode", mode); |
| 29 | return static_cast<Mode>(mode); |
| 30 | } |
| 31 | |
| 32 | void setMode(Bundle& bundle, Mode mode) { |
| 33 | auto mode_int = static_cast<int32_t>(mode); |