Type Function Object NativeDisplayObject Library native.* Return value Lua values compatible with Obj-C Revision Release 2022.3683 Keywords native object, property accessors See also object:setNativeProperty()
This function allows you to get properties of the underlying native object created by the native library. For example, if you create a WebView on iOS, you can access the WKWebView
(or WKWebViewConfiguration
if called before a request is made).
This is an iOS-only feature.
object:getNativeProperty( property )
String. The string name for the native property.
local webView = native.newWebView( 0, 0, display.contentWidth, display.contentHeight ) local allows = webView:getNativeProperty( "allowsInlineMediaPlayback" )