Package io.github.hapjava.services.impl
Class MicrophoneService
- java.lang.Object
- 
- io.github.hapjava.services.impl.MicrophoneService
 
- 
- All Implemented Interfaces:
- Service
 
 public class MicrophoneService extends java.lang.ObjectA Microphone service is used to control the sourcing of the input audio – primarily through a microphone.
- 
- 
Constructor SummaryConstructors Constructor Description MicrophoneService(MicrophoneAccessory accessory)MicrophoneService(MuteCharacteristic muteCharacteristic)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCharacteristic(Characteristic characteristic)voidaddLinkedService(Service service)Add linked servicesvoidaddOptionalCharacteristic(VolumeCharacteristic volume)voidaddOptionalCharacteristic(NameCharacteristic name)java.util.List<Characteristic>getCharacteristics()Characteristics are the variables offered for reading, updating, and eventing by the Service over the HomeKit protocol.java.util.List<Service>getLinkedServices()List of all the services to which the service linksjava.lang.StringgetType()The type is a UUID that uniquely identifies the type of Service offered.
 
- 
- 
- 
Constructor Detail- 
MicrophoneServicepublic MicrophoneService(MuteCharacteristic muteCharacteristic) 
 - 
MicrophoneServicepublic MicrophoneService(MicrophoneAccessory accessory) 
 
- 
 - 
Method Detail- 
addOptionalCharacteristicpublic void addOptionalCharacteristic(NameCharacteristic name) 
 - 
addOptionalCharacteristicpublic void addOptionalCharacteristic(VolumeCharacteristic volume) 
 - 
getCharacteristicspublic java.util.List<Characteristic> getCharacteristics() Description copied from interface:ServiceCharacteristics are the variables offered for reading, updating, and eventing by the Service over the HomeKit protocol.It is important to maintain the order of this list and not change its contents between invocations, or a pairing error will result. - Specified by:
- getCharacteristicsin interface- Service
- Returns:
- the list of Characteristics.
 
 - 
getTypepublic java.lang.String getType() Description copied from interface:ServiceThe type is a UUID that uniquely identifies the type of Service offered. Apple defines several types for standard Services, however UUIDs outside this range are allowed for custom Services.
 - 
getLinkedServicespublic java.util.List<Service> getLinkedServices() Description copied from interface:ServiceList of all the services to which the service links- Specified by:
- getLinkedServicesin interface- Service
- Returns:
- the list of linked services.
 
 - 
addCharacteristicpublic void addCharacteristic(Characteristic characteristic) 
 - 
addLinkedServicepublic void addLinkedService(Service service) Description copied from interface:ServiceAdd linked services- Specified by:
- addLinkedServicein interface- Service
- Parameters:
- service- linked service
 
 
- 
 
-