AI-generated Key Takeaways
-
PayloadTransferUpdate describes the status for an active Payload transfer, either incoming or outgoing.
-
It is delivered to PayloadCallback.onPayloadTransferUpdate.
-
It includes methods to get the payload identifier, status, total bytes, and bytes transferred so far.
-
It implements the Parcelable interface and has a Builder nested class.
Describes the status for an active Payload
transfer, either incoming or outgoing. Delivered to
PayloadCallback.onPayloadTransferUpdate(String, PayloadTransferUpdate).
Nested Class Summary
| class | PayloadTransferUpdate.Builder | Builder class for PayloadTransferUpdate. | |
| @interface | PayloadTransferUpdate.Status | The status of the payload transfer at the time of this update. | |
Inherited Constant Summary
Field Summary
| public static final Creator<PayloadTransferUpdate> | CREATOR |
Public Method Summary
| boolean | |
| long |
getBytesTransferred()
Returns the number of bytes transferred so far.
|
| long |
getPayloadId()
Returns the payload identifier.
|
| int |
getStatus()
Returns the status of the payload.
|
| long |
getTotalBytes()
Returns the total number of bytes in the payload.
|
| int |
hashCode()
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<PayloadTransferUpdate> CREATOR
Public Methods
public boolean equals (Object other)
public long getBytesTransferred ()
Returns the number of bytes transferred so far.
public long getPayloadId ()
Returns the payload identifier.
public int getStatus ()
Returns the status of the payload.
public long getTotalBytes ()
Returns the total number of bytes in the payload.