Class AntPlusBaseRemoteControlPcc.ControlDeviceCapabilities
java.lang.Object
com.dsi.ant.plugins.antplus.pcc.controls.pccbase.AntPlusBaseRemoteControlPcc.ControlDeviceCapabilities
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- AntPlusBaseRemoteControlPcc
public static class AntPlusBaseRemoteControlPcc.ControlDeviceCapabilities
extends Object
implements android.os.Parcelable
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<AntPlusBaseRemoteControlPcc.ControlDeviceCapabilities>static final StringDefault IPC keyFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor for ControlDeviceAvailabilities.ControlDeviceCapabilities(boolean isMaximumNumberRemotesConnected, boolean isAudioControlSupported, boolean isGenericControlSupported, boolean isVideoControlSupported, boolean isBurstCommandSupported) Constructor for ControlDeviceAvailabilitiesControlDeviceCapabilities(android.os.Parcel in) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanReturns whether audio control is supportedbooleanReturns whether burst commands are supportedbooleanReturns whether generic control is supportedbooleanReturns whether the maximum number of remotes have been reachedbooleanReturns whether video control is supportedvoidsetAudioControlSupported(boolean isAudioControlSupported) Sets whether audio control is supportedvoidsetBurstCommandSupported(boolean isBurstCommandSupported) Sets whether burst commands are supportedvoidsetGenericControlSupported(boolean isGenericControlSupported) Sets whether generic control is supportedvoidsetMaximumNumberRemotesConnected(boolean isMaximumNumberRemotesConnected) Sets whether the maximum number of remotes have been reachedvoidsetVideoControlSupported(boolean isVideoControlSupported) Sets whether video control is supportedvoidwriteToParcel(android.os.Parcel out, int flags)
-
Field Details
-
KEY_DEFAULT_CONTROLDEVICEAVAILABILITIESKEY
Default IPC key- See Also:
-
CREATOR
public static final android.os.Parcelable.Creator<AntPlusBaseRemoteControlPcc.ControlDeviceCapabilities> CREATOR
-
-
Constructor Details
-
ControlDeviceCapabilities
public ControlDeviceCapabilities()Default Constructor for ControlDeviceAvailabilities. Sets all fiels to false -
ControlDeviceCapabilities
public ControlDeviceCapabilities(boolean isMaximumNumberRemotesConnected, boolean isAudioControlSupported, boolean isGenericControlSupported, boolean isVideoControlSupported, boolean isBurstCommandSupported) Constructor for ControlDeviceAvailabilities- Parameters:
isMaximumNumberRemotesConnected- Indicates if the controllable device is connected to its maximum number of remotes.isAudioControlSupported- Indicates if the controllable device is capable of audio control.isGenericControlSupported- Indicates if the controllable device is capable of generic control.isVideoControlSupported- Indicates if the controllable device is capable of video control.isBurstCommandSupported- Indicates if the controllable device is capable of receiving burst commands.
-
ControlDeviceCapabilities
public ControlDeviceCapabilities(android.os.Parcel in)
-
-
Method Details
-
writeToParcel
public void writeToParcel(android.os.Parcel out, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
getMaximumNumberRemotesConnected
public boolean getMaximumNumberRemotesConnected()Returns whether the maximum number of remotes have been reached -
getAudioControlSupported
public boolean getAudioControlSupported()Returns whether audio control is supported -
getGenericControlSupported
public boolean getGenericControlSupported()Returns whether generic control is supported -
getVideoControlSupported
public boolean getVideoControlSupported()Returns whether video control is supported -
getBurstCommandSupported
public boolean getBurstCommandSupported()Returns whether burst commands are supported -
setMaximumNumberRemotesConnected
public void setMaximumNumberRemotesConnected(boolean isMaximumNumberRemotesConnected) Sets whether the maximum number of remotes have been reached -
setAudioControlSupported
public void setAudioControlSupported(boolean isAudioControlSupported) Sets whether audio control is supported -
setGenericControlSupported
public void setGenericControlSupported(boolean isGenericControlSupported) Sets whether generic control is supported -
setVideoControlSupported
public void setVideoControlSupported(boolean isVideoControlSupported) Sets whether video control is supported -
setBurstCommandSupported
public void setBurstCommandSupported(boolean isBurstCommandSupported) Sets whether burst commands are supported
-