Type Function Object NativeDisplayObject Library native.* Return value none Revision 2017.3060 Keywords native object, property accessors See also object:getNativeProperty()
This function allows you to set properties of the underlying native object created by the native library. For example, if you create a WebView on iOS, you can set the Obj-C properties of the corresponding UIWebView
.
This is an iOS-only feature.
object:setNativeProperty( property, value )
String. The string name for the native property.
local webView = native.newWebView( 0, 0, display.contentWidth, display.contentHeight ) webView:setNativeProperty( "allowsInlineMediaPlayback", true )