@Override public void call(final Subscriber<? super StreetViewPanoramaOrientation> subscriber) { MainThreadSubscription.verifyMainThread(); StreetViewPanorama.OnStreetViewPanoramaLongClickListener listener = new StreetViewPanorama.OnStreetViewPanoramaLongClickListener() { @Override public void onStreetViewPanoramaLongClick( StreetViewPanoramaOrientation streetViewPanoramaOrientation) { if (!subscriber.isUnsubscribed()) { subscriber.onNext(streetViewPanoramaOrientation); } } }; streetViewPanorama.setOnStreetViewPanoramaLongClickListener(listener); subscriber.add(new MainThreadSubscription() { @Override protected void onUnsubscribe() { streetViewPanorama.setOnStreetViewPanoramaLongClickListener(null); } }); }
@Override public void call(final Subscriber<? super StreetViewPanoramaOrientation> subscriber) { MainThreadSubscription.verifyMainThread(); StreetViewPanorama.OnStreetViewPanoramaClickListener listener = new StreetViewPanorama.OnStreetViewPanoramaClickListener() { @Override public void onStreetViewPanoramaClick( StreetViewPanoramaOrientation streetViewPanoramaOrientation) { if (!subscriber.isUnsubscribed()) { subscriber.onNext(streetViewPanoramaOrientation); } } }; streetViewPanorama.setOnStreetViewPanoramaClickListener(listener); subscriber.add(new MainThreadSubscription() { @Override protected void onUnsubscribe() { streetViewPanorama.setOnStreetViewPanoramaClickListener(null); } }); }
public boolean onTransact(int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2) { switch (paramInt1) { default: return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2); case 1598968902: paramParcel2.writeString("com.google.android.gms.maps.internal.IOnStreetViewPanoramaLongClickListener"); return true; } paramParcel1.enforceInterface("com.google.android.gms.maps.internal.IOnStreetViewPanoramaLongClickListener"); if (paramParcel1.readInt() != 0) {} for (StreetViewPanoramaOrientation localStreetViewPanoramaOrientation = fko.a(paramParcel1);; localStreetViewPanoramaOrientation = null) { a(localStreetViewPanoramaOrientation); paramParcel2.writeNoException(); return true; } }
public boolean onTransact(int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2) { switch (paramInt1) { default: return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2); case 1598968902: paramParcel2.writeString("com.google.android.gms.maps.internal.IOnStreetViewPanoramaClickListener"); return true; } paramParcel1.enforceInterface("com.google.android.gms.maps.internal.IOnStreetViewPanoramaClickListener"); if (paramParcel1.readInt() != 0) {} for (StreetViewPanoramaOrientation localStreetViewPanoramaOrientation = fko.a(paramParcel1);; localStreetViewPanoramaOrientation = null) { a(localStreetViewPanoramaOrientation); paramParcel2.writeNoException(); return true; } }
public static StreetViewPanoramaOrientation a(Parcel paramParcel) { float f1 = 0.0F; int i = efj.a(paramParcel); int j = 0; float f2 = 0.0F; while (paramParcel.dataPosition() < i) { int k = paramParcel.readInt(); switch (0xFFFF & k) { default: efj.b(paramParcel, k); break; case 1: efj.a(paramParcel, k, 4); j = paramParcel.readInt(); break; case 2: efj.a(paramParcel, k, 4); f2 = paramParcel.readFloat(); break; case 3: efj.a(paramParcel, k, 4); f1 = paramParcel.readFloat(); } } if (paramParcel.dataPosition() != i) { throw new bm("Overread allowed size end=" + i, paramParcel); } return new StreetViewPanoramaOrientation(j, f2, f1); }
@Override public void onStreetViewPanoramaClick(StreetViewPanoramaOrientation orientation) { Point point = svp.orientationToPoint(orientation); if (point != null) { mPanoClickTextView.setText( "Times clicked=" + ++mPanoClickTimes + " :" + point.toString()); svp.animateTo(new StreetViewPanoramaCamera.Builder().orientation(orientation) .zoom(svp.getPanoramaCamera().zoom).build(), 1000); } }
/** * Create an observable which emits on {@code streetViewPanorama} click events. * <p> * <em>Warning:</em> The created observable keeps a strong reference to {@code * streetViewPanorama}. Unsubscribe to free this reference. * </p> */ @CheckResult @NonNull public static Observable<StreetViewPanoramaOrientation> streetViewPanoramaClicks( StreetViewPanorama streetViewPanorama) { checkNotNull(streetViewPanorama, "streetViewPanorama == null"); return Observable.create(new StreetViewPanoramaClickOnSubscribe(streetViewPanorama)); }
/** * Create an observable which emits on {@code streetViewPanorama} long-click events. * <p> * <em>Warning:</em> The created observable keeps a strong reference to {@code * streetViewPanorama}. Unsubscribe to free this reference. * </p> */ @CheckResult @NonNull public static Observable<StreetViewPanoramaOrientation> streetViewPanoramaLongClicks( @NonNull StreetViewPanorama streetViewPanorama) { checkNotNull(streetViewPanorama, "streetViewPanorama == null"); return Observable.create(new StreetViewPanoramaLongClickOnSubscribe(streetViewPanorama)); }
public abstract StreetViewPanoramaOrientation a(euz parameuz);
public abstract euz a(StreetViewPanoramaOrientation paramStreetViewPanoramaOrientation);
public abstract void a(StreetViewPanoramaOrientation paramStreetViewPanoramaOrientation);