@ThreadSafe @LevelUpApi(contract=PUBLIC) public final class BeaconCheckInRequestFactory extends AbstractRequestFactory
GcmDeviceRequestFactory
, then users may
receive a GCM notification shortly after the beacon check-in, alerting them that they can pay
with your app at the nearby location. Beacon messages can be configured within the
LevelUp Dashboard.
LevelUp beacons have the UUID 56DB0365-A001-4062-9E4D-499D3B8ECCF3
.Constructor and Description |
---|
BeaconCheckInRequestFactory(Context context,
AccessTokenRetriever retriever) |
Modifier and Type | Method and Description |
---|---|
AbstractRequest |
buildBeaconCheckInRequest(String majorId,
String minorId)
Build a beacon check in request.
|
getAccessTokenRetriever, getContext
public BeaconCheckInRequestFactory(Context context, AccessTokenRetriever retriever)
context
- the Application context.retriever
- the AccessTokenRetriever
to use to retrieve the
AccessToken
.public AbstractRequest buildBeaconCheckInRequest(String majorId, String minorId)
Permissions.PERMISSION_BEACON_CHECKINS
permission.majorId
- The string value of the major value of the beacon.minorId
- The string value of the minor value of the beacon.AbstractRequest
to check-in when an app gets
in range of a LevelUp beacon.