public static class Transaction.Builder
extends java.lang.Object
A Builder fro creating Transactions.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Transaction.Builder |
addMarker(Marker marker)
Add a Marker to this Transaction.
|
Transaction.Builder |
addMarkers(java.util.Collection<Marker> markers)
Add a Collection of Markers to this Transaction.
|
Transaction |
build()
Build the Transaction.
|
long |
getSize()
Get the number of markers in this Transaction.
|
Transaction.Builder |
setAnimated(boolean animated)
Set if the Transaction is animated or not.
|
Transaction.Builder |
setAnimationDuration(long duration)
Set the duration of teh Transactions animation in milliseconds.
|
Transaction.Builder |
setListener(Transaction.Listener listener)
Set the Listener for this Transaction.
|
Transaction.Builder |
setType(Transaction.Type type)
Set the Type of this Transaction.
|
public Transaction.Builder setListener(@NonNull Transaction.Listener listener)
Set the Listener for this Transaction.
public Transaction.Builder setAnimated(boolean animated)
Set if the Transaction is animated or not.
public Transaction.Builder setAnimationDuration(long duration)
Set the duration of teh Transactions animation in milliseconds. The default animation length is 500 milliseconds.
public Transaction.Builder addMarker(@NonNull Marker marker)
Add a Marker to this Transaction.
public Transaction.Builder addMarkers(@NonNull java.util.Collection<Marker> markers)
Add a Collection of Markers to this Transaction.
public Transaction.Builder setType(@NonNull Transaction.Type type)
Set the Type of this Transaction.
public long getSize()
Get the number of markers in this Transaction.
public Transaction build()
Build the Transaction.