Package com.clover.sdk.v1.printer
Class Type
- java.lang.Object
-
- com.clover.sdk.v1.printer.Type
-
- All Implemented Interfaces:
Parcelable
public class Type extends Object implements Parcelable
In older versions of the clover-android-sdk this was an enum, but has now been refactored to a class to future-proof it. Instances of this class contain a single non-human readable String which can be used to uniquely identify the printer type. UseTypeDetails
to get detailed information about a printer which formerly was available here.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<Type>
CREATOR
String
name
A non-human readable String identifying the type of printer.-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
boolean
equals(Object o)
int
hashCode()
String
name()
This class used to be an enum and to remain semi-compatible retains a compatible method.String
toString()
void
writeToParcel(Parcel dest, int flags)
-
-
-
Field Detail
-
name
public final String name
A non-human readable String identifying the type of printer. An example value is "SEIKO_USB". The value shall not be null or empty.
-
CREATOR
public static final Parcelable.Creator<Type> CREATOR
-
-
Constructor Detail
-
Type
public Type(String name)
-
-
Method Detail
-
name
public String name()
This class used to be an enum and to remain semi-compatible retains a compatible method.
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceParcelable
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceParcelable
-
-