Summary: Inherited Constants | Methods | Inherited Methods | [Expand All]
public static abstract class

# BeaconState.TypeFilter

extends Object
implements SafeParcelable

java.lang.Object
↳ | com.google.android.gms.awareness.state.BeaconState.TypeFilter

## Class Overview

The type of beacon to match. Beacons can be specified by either:

- A String match on both the namespace and type associated with the beacon.
- A String match on the namespace, type, and byte-for-byte match on the content.

## Summary

[Expand] Inherited Constants
From interface com.google.android.gms.common.internal.safeparcel.SafeParcelable
String | NULL |
From interface android.os.Parcelable
int | CONTENTS_FILE_DESCRIPTOR |
int | PARCELABLE_WRITE_RETURN_VALUE |

Public Methods
static BeaconState.TypeFilter | with(String namespace, String type) Creates a `BeaconState.TypeFilter` that matches against beacons with the given `namespace` and `type`, regardless of the content.
static BeaconState.TypeFilter | with(String namespace, String type, byte[] content) Creates a `BeaconState.TypeFilter` that matches against beacons with the given `namespace`, `type`, and `content`.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface android.os.Parcelable
abstract int | describeContents()
abstract void | writeToParcel(Parcel arg0, int arg1)

## Public Methods

#### public static BeaconState.TypeFilter with (String namespace, String type)

Creates a `BeaconState.TypeFilter` that matches against beacons with the given `namespace` and `type`, regardless of the content.

##### Parameters

namespace | Beacon namespace to match against.
type | beacon Type to match against.

#### public static BeaconState.TypeFilter with (String namespace, String type, byte[] content)

Creates a `BeaconState.TypeFilter` that matches against beacons with the given `namespace`, `type`, and `content`.

##### Parameters

namespace | Beacon namespace to match against.
type | beacon Type to match against.
content | Beacon context to match against. This must be an exact byte-for-byte match for the content.