(view: View, oldValue: SplitRole, newValue: SplitRole)
| 231 | } |
| 232 | |
| 233 | public onRoleChanged(view: View, oldValue: SplitRole, newValue: SplitRole) { |
| 234 | // Move child mapping to new role and resync |
| 235 | const oldRole = this._findRoleByChild(view); |
| 236 | if (oldRole) { |
| 237 | const controller = this._controllers.get(oldRole); |
| 238 | this._controllers.delete(oldRole); |
| 239 | this._children.delete(oldRole); |
| 240 | if (controller) { |
| 241 | this._controllers.set(newValue, controller); |
| 242 | } |
| 243 | this._children.set(newValue, view); |
| 244 | this._syncControllers(); |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | onSecondaryViewCollapsed(secondaryViewController: UIViewController, primaryViewController: UIViewController): void { |
| 249 | // Default implementation: do nothing. |
nothing calls this directly
no test coverage detected