PlaceBufferResponse | Doclava
public class

PlaceBufferResponse

extends Response<R extends AbstractDataBuffer<T> & Result>
implements DataBuffer<Place>
java.lang.Object
   ↳ com.google.android.gms.common.api.Response<R extends com.google.android.gms.common.data.AbstractDataBuffer<T> & com.google.android.gms.common.api.Result>
     ↳ com.google.android.gms.location.places.PlaceBufferResponse

Class Overview

Data structure providing access to a list of Place objects.

NOTE: The calling application must release() this object after it is done with it to prevent a memory leak. Refer to the developer's guide for more information about handling buffers.

Summary

Public Methods
void close()
Place get(int position)
Returns an element on specified position.
CharSequence getAttributions()
Returns the attributions to be shown to the user.
int getCount()
Bundle getMetadata()
boolean isClosed()
Iterator<Place> iterator()
void release()
Releases resources used by the buffer.
Iterator<Place> singleRefIterator()
In order to use this iterator it should be supported by particular DataBuffer.
[Expand]
Inherited Methods
From class com.google.android.gms.common.api.Response
From class java.lang.Object
From interface com.google.android.gms.common.data.DataBuffer
From interface java.lang.Iterable
From interface com.google.android.gms.common.api.Releasable

Public Methods

public void close ()

public Place get (int position)

Returns an element on specified position.

Parameters
position int
Returns
Place

public CharSequence getAttributions ()

Returns the attributions to be shown to the user.

These are aggregated attributions for all the places in the buffer.

We recommend placing this information below any place information. See Displaying Attributions for more details.

Returns
CharSequence The attributions in HTML format, or null if there are none.

public int getCount ()

Returns
int

public Bundle getMetadata ()

Returns
Bundle

public boolean isClosed ()

Returns
boolean

public Iterator<Place> iterator ()

Returns
Iterator<Place>

public void release ()

Releases resources used by the buffer. This method is idempotent.

public Iterator<Place> singleRefIterator ()

In order to use this iterator it should be supported by particular DataBuffer. Be careful: there will be single reference while iterating. If you are not sure - DO NOT USE this iterator.

Returns
Iterator<Place>