You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting traits of a UIAccessibilityElement, this is the error that I get:
Error: class java.lang.UnsatisfiedLinkError, Optional @globalvalue method org/robovm/apple/uikit/UIAccessibilityTraits.NoneValue()J not bound
Reproduction steps/code
Here is a snippet of code:
UIAccessibilityElement accessibilityElement = new UIAccessibilityElement(iosAccessibility);
accessibilityElement.setAccessibilityFrame(new CGRect(x, y, width, height));
if (item.GetName() != null)
accessibilityElement.setAccessibilityLabel(item.GetName());
else
accessibilityElement.setAccessibilityLabel("Default Name");
if (item.GetDescription() != null)
accessibilityElement.setAccessibilityHint(item.GetDescription());
else
accessibilityElement.setAccessibilityHint("Default Description");
if (item.GetAccessibilityCode() == item.Get_Libraries_Interface_Item__NOT_ACCESSIBLE_())
accessibilityElement.setAccessibilityElement(false);
else
accessibilityElement.setAccessibilityElement(true);
UIAccessibilityTraits traits = UIAccessibilityTraits.AllowsDirectInteraction; // The line that is crashing
accessibilityElement.setAccessibilityTraits(traits);
// Add the accessibility element to the list
accessibilityElements.add(accessibilityElement);
// Inform iOS that the accessibility elements have changed
UIAccessibilityGlobals.postNotification(UIAccessibilityNotification.LayoutChangedNotification, accessibilityElement);
Configuration
2.3.19
Build Tools:
Gradle plugin
Versions:
Please provide the version of RoboVM, XCode and JDK used
hi, thanks for reporting
there is a bug in bindings, will be fixed during ios17 binding update (don't close this issue).
meanwhile please use folloiwing workaround. call this line somewhere before accessing UIAccessibilityTraits
Issue details
When setting traits of a UIAccessibilityElement, this is the error that I get:
Error: class java.lang.UnsatisfiedLinkError, Optional @globalvalue method org/robovm/apple/uikit/UIAccessibilityTraits.NoneValue()J not bound
Reproduction steps/code
Here is a snippet of code:
UIAccessibilityElement accessibilityElement = new UIAccessibilityElement(iosAccessibility);
Configuration
2.3.19
Build Tools:
Versions:
Please provide the version of RoboVM, XCode and JDK used
Build Targets:
iPhone 14 Pro Max iOS 16.
Stacktrace
The text was updated successfully, but these errors were encountered: