traitCollectionDidChange method

void traitCollectionDidChange(
  1. UITraitCollection? previousTraitCollection
)

! To be overridden as needed to provide custom behavior when the environment's traits change.

Implementation

void traitCollectionDidChange(UITraitCollection? previousTraitCollection) {
  objc.checkOsVersionInternal('UIViewController.traitCollectionDidChange:', iOS: (false, (8, 0, 0)));
  _objc_msgSend_xtuoz7(
    this.ref.pointer,
    _sel_traitCollectionDidChange_,
    previousTraitCollection?.ref.pointer ?? ffi.nullptr,
  );
}