Type Function Object NativeDisplayObject Library native.* Return value Lua values compatible with Obj-C Revision 2017.3060 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 UIWebView
.
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" )