Return to Video

Recap the addGeofences parameters

  • 0:00 - 0:02
    So when adding GeoFences
    to LocationServices, so
  • 0:02 - 0:05
    they can monitor them for you,
    there were a number of steps that
  • 0:05 - 0:08
    you had to follow, and
    you've done all of these now.
  • 0:08 - 0:08
    Most notably,
  • 0:08 - 0:13
    you were calling the addGeoFences
    method on the GeoFencingApi object.
  • 0:13 - 0:16
    You're passing it a GoogleApiClient,
    a Geofencing Request and
  • 0:16 - 0:18
    a Geofencing Pending Intent.
  • 0:18 - 0:22
    Now, whenever you add one of
    the Geofences to the services,
  • 0:22 - 0:26
    the service will callback onResult(),
    and will pass you a status code.
  • 0:26 - 0:30
    You can then check this status
    code to see if the GeoFence was
  • 0:30 - 0:33
    added successfully, or
    if there was an error.
  • 0:33 - 0:36
    In the next step you're going to
    implement this onResult(), and
  • 0:36 - 0:38
    check this box when you're
    ready to go forward.
Tytuł:
Recap the addGeofences parameters
Opis:

more » « less
Video Language:
English
Team:
Udacity
Projekt:
UD876-1 - Google Play Services - Location & Contex
Duration:
0:39

English subtitles

Revisions Compare revisions