-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ccbd3b
commit e4d97db
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
android-core/src/main/kotlin/com/mparticle/MPLocationListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.mparticle; | ||
|
||
import android.location.Location; | ||
import android.location.LocationListener; | ||
import android.os.Bundle; | ||
|
||
/** | ||
* Created by sdozor on 3/9/15. | ||
*/ | ||
public final class MPLocationListener implements LocationListener { | ||
private final MParticle mParticle; | ||
|
||
public MPLocationListener(MParticle mParticle) { | ||
this.mParticle = mParticle; | ||
} | ||
|
||
@Override | ||
public void onLocationChanged(Location location) { | ||
if (mParticle != null) { | ||
mParticle.setLocation(location); | ||
} | ||
} | ||
|
||
@Override | ||
public void onStatusChanged(String provider, int status, Bundle extras) { | ||
|
||
} | ||
|
||
@Override | ||
public void onProviderEnabled(String provider) { | ||
|
||
} | ||
|
||
@Override | ||
public void onProviderDisabled(String provider) { | ||
|
||
} | ||
|
||
|
||
} |