soundIdentifierForFocusUpdateInContext method
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(object$.ref.pointer, _sel_soundIdentifierForFocusUpdateInContext_)) {
throw objc.UnimplementedOptionalMethodException('UIViewController', 'soundIdentifierForFocusUpdateInContext:');
}
final $ret = _objc_msgSend_1sotr3r(
object$.ref.pointer,
_sel_soundIdentifierForFocusUpdateInContext_,
context.ref.pointer,
);
return $ret.address == 0 ? null : objc.NSString.fromPointer($ret, retain: true, release: true);
}