Proximity Server Activation Helper
class ProximityServerActivationHelper @JvmOverloads constructor(val voiceServer: PlasmoVoiceServer, val activation: ServerActivation, val sourceLine: ServerSourceLine, distanceSupplier: ProximityServerActivationHelper.DistanceSupplier? = null)
Helper class for proximity activations.
This class will handle sources and activation manipulations for proximity activations. You just need to create an instance of this class and register it in Plasmo Voice eventbus.
Example usage:
ProximityServerActivationHelper proximityHelper = new ProximityServerActivationHelper(voiceServer, activation, sourceLine);
voiceServer.eventBus.register(voiceServer, proximityHelper);
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(voiceServer: PlasmoVoiceServer, activation: ServerActivation, sourceLine: ServerSourceLine, distanceSupplier: ProximityServerActivationHelper.DistanceSupplier? = null)
Types
Link copied to clipboard
interface DistanceSupplier