targetLocal

fun targetLocal(local: Boolean = true)

Sets whether to target the calls to primary or the local device.

By default all calls are targeted to primary. If running on a com.poly.polyos.room.DeviceType.STANDALONE all calls are automatically targeted to local device.

This API is useful when running on a com.poly.polyos.room.DeviceType.CONTROLLER device to explicitly target all calls of this PolyOsManager instance to the local com.poly.polyos.room.DeviceType.CONTROLLER.

If this secondary device is set as a com.poly.polyos.room.DeviceType.STANDALONE, then all calls are automatically targeted to that local device.

This has effect only called from a com.poly.polyos.room.DeviceType.CONTROLLER or com.poly.polyos.room.DeviceType.STANDALONE.

A com.poly.polyos.room.DeviceType.CONTROLLER or a com.poly.polyos.room.DeviceType.STANDALONE device may not support all polyos api's.

Since

3.12.0.0-11

Parameters

local

True to target to local device, false to target primary