DJI Mobile SDK Documentation

      class ARDistAlpha

      class ARDistAlpha implements Parcelable 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Configuration for AR face/stroke alpha varying with distance.

      Supported since MSDK 5.20.1

      Class Members:
      method
      method isEnable
      boolean isEnable() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get whether the distance-based alpha effect is enabled.

      Supported since MSDK 5.20.1

      Return:
      booleanWhether the distance-based alpha effect is enabled.
      method
      method setEnable
      void setEnable(boolean enable) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set whether to enable the distance-based alpha effect.

      Supported since MSDK 5.20.1

      Input Parameters:
      boolean enableWhether to enable the distance-based alpha effect.
      method getMinDist
      float getMinDist() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the nearest distance (meters).

      Supported since MSDK 5.20.1

      Return:
      floatThe nearest distance in meters.
      method setMinDist
      void setMinDist(float minDist) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the nearest distance (meters).

      Supported since MSDK 5.20.1

      Input Parameters:
      float minDistThe nearest distance in meters.
      method getMinAlpha
      float getMinAlpha() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the alpha value at the nearest distance (0~1).

      Supported since MSDK 5.20.1

      Return:
      floatThe alpha value at the nearest distance (0~1).
      method setMinAlpha
      void setMinAlpha(float minAlpha) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the alpha value at the nearest distance (0~1).

      Supported since MSDK 5.20.1

      Input Parameters:
      float minAlphaThe alpha value at the nearest distance (0~1).
      method getMaxDist
      float getMaxDist() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the farthest distance (meters).

      Supported since MSDK 5.20.1

      Return:
      floatThe farthest distance in meters.
      method setMaxDist
      void setMaxDist(float maxDist) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the farthest distance (meters).

      Supported since MSDK 5.20.1

      Input Parameters:
      float maxDistThe farthest distance in meters.
      method getMaxAlpha
      float getMaxAlpha() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the alpha value at the farthest distance (0~1).

      Supported since MSDK 5.20.1

      Return:
      floatThe alpha value at the farthest distance (0~1).
      method setMaxAlpha
      void setMaxAlpha(float maxAlpha) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the alpha value at the farthest distance (0~1).

      Supported since MSDK 5.20.1

      Input Parameters:
      float maxAlphaThe alpha value at the farthest distance (0~1).