示例#1
0
 @Override
 public void onRouteBuildingProgress(final float progress) {
   UiThread.run(
       new Runnable() {
         @Override
         public void run() {
           mLastBuildProgress = (int) progress;
           updateProgress();
         }
       });
 }
示例#2
0
        @Override
        public void onRoutingEvent(final int resultCode, @Nullable final String[] missingMaps) {
          mLogger.d("onRoutingEvent(resultCode: " + resultCode + ")");

          UiThread.run(
              new Runnable() {
                @Override
                public void run() {
                  mLastResultCode = resultCode;
                  mLastMissingMaps = missingMaps;
                  mContainsCachedResult = true;

                  if (mLastResultCode == ResultCodesHelper.NO_ERROR) {
                    mCachedRoutingInfo = Framework.nativeGetRouteFollowingInfo();
                    setBuildState(BuildState.BUILT);
                    mLastBuildProgress = 100;
                  }

                  processRoutingEvent();
                }
              });
        }