Payload.Type
Stay organized with collections
Save and categorize content based on your preferences.
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."],[[["`Payload.Type` is an annotation that defines the type of data being transferred using the Nearby Connections API."],["There are three payload types: `BYTES`, `FILE`, and `STREAM`, representing a byte array, a file, and a real-time data stream, respectively."],["`Payload.Type` provides constants for these payload types, enabling developers to specify the data format for their connections."]]],[]]