soundIdentifierForFocusUpdateInContext method

NSString? soundIdentifierForFocusUpdateInContext(
  1. UIFocusUpdateContext context
)

Specifies an identifier corresponding to a sound that should be played for a focus update. Return UIFocusSoundIdentifierNone to opt out of sounds, UIFocusSoundIdentifierDefault for the system default sounds, a previously registered identifier for a custom sound, or nil to defer the decision to the parent.

Implementation

objc.NSString? soundIdentifierForFocusUpdateInContext(UIFocusUpdateContext context) {
  objc.checkOsVersionInternal('UIViewController.soundIdentifierForFocusUpdateInContext:', iOS: (true, null));
  if (!objc.respondsToSelector(this.ref.pointer, _sel_soundIdentifierForFocusUpdateInContext_)) {
    throw objc.UnimplementedOptionalMethodException('UIViewController', 'soundIdentifierForFocusUpdateInContext:');
  }
  final _ret = _objc_msgSend_1sotr3r(
    this.ref.pointer,
    _sel_soundIdentifierForFocusUpdateInContext_,
    context.ref.pointer,
  );
  return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true);
}