Payload.Type
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
Payload.Type is an abstract interface implementing Annotation.
It defines constants for different types of payloads: BYTES, FILE, and STREAM.
BYTES represents a single byte array payload.
FILE represents a file payload on the device.
STREAM represents a real-time stream of data.
The type of this payload.
Constant Summary
int
BYTES
A Payload consisting of a single byte
array.
int
FILE
A Payload representing a file on the
device.
int
STREAM
A Payload representing a real-time stream of
data; e.g.
Inherited Method Summary
From interface java.lang.annotation.Annotation
abstract Class <? extends Annotation >
annotationType ()
abstract boolean
abstract int
hashCode ()
abstract String
toString ()
Constants
public static final int
BYTES
A Payload consisting of a single byte array.
Constant Value: 1
public static final int
FILE
A Payload representing a file on the device.
Constant Value: 2
public static final int
STREAM
A Payload representing a real-time stream of data; e.g. generated data for which the
total size is not known ahead of time.
Constant Value: 3
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[],[]]