registerObjectForStateRestoration static method

void registerObjectForStateRestoration(
  1. UIStateRestoring object, {
  2. required NSString restorationIdentifier,
})

registerObjectForStateRestoration:restorationIdentifier:

Implementation

static void registerObjectForStateRestoration(
  UIStateRestoring object, {
  required objc.NSString restorationIdentifier,
}) {
  objc.checkOsVersionInternal(
    'UIApplication.registerObjectForStateRestoration:restorationIdentifier:',
    iOS: (false, (7, 0, 0)),
  );
  _objc_msgSend_pfv6jd(
    _class_UIApplication,
    _sel_registerObjectForStateRestoration_restorationIdentifier_,
    object.ref.pointer,
    restorationIdentifier.ref.pointer,
  );
}