Loading...
Searching...
No Matches
com.navigine.idl.java.internal.UserLocationLayerBinding Class Reference
+ Inheritance diagram for com.navigine.idl.java.internal.UserLocationLayerBinding:

Public Member Functions

native boolean isValid ()
 
void setVisible (boolean visible)
 Shows or hides user location layer.
 
boolean isVisible ()
 Returns true if user location layer is visible.
 
void setAnchor (android.graphics.PointF anchor)
 Sets anchor point for user indicator in screen pixels.
 
void resetAnchor ()
 Resets anchor to default (center).
 
boolean anchorEnabled ()
 Returns true if custom anchor is enabled.
 
void setHeadingModeActive (boolean active)
 Enables or disables heading-up mode while the user location layer is anchored.
 
boolean headingModeActive ()
 Returns true if heading-up mode is enabled. Same as followMode() == HEADING.
 
void setFollowMode (UserLocationFollowMode mode)
 Sets how the camera follows the user. NONE stops following and keeps a previously set anchor point. POSITION, HEADING and COURSE follow even without setAnchor (screen center). setAnchor() from NONE switches to POSITION. resetAnchor() switches to NONE. setHeadingModeActive(true) switches to HEADING.
 
UserLocationFollowMode followMode ()
 Returns the current follow mode.
 
void setArrowBitmap (com.navigine.image.ImageProvider bitmap)
 Replaces the heading arrow bitmap. Null restores the built-in heading fan.
 
void setAccuracyColor (int color)
 Sets the accuracy-circle fill. Default is a translucent blue.
 

Detailed Description

Definition at line 11 of file UserLocationLayerBinding.java.

Member Function Documentation

◆ anchorEnabled()

boolean com.navigine.idl.java.internal.UserLocationLayerBinding.anchorEnabled ( )
inline

Returns true if custom anchor is enabled.

Java code snippet:

boolean anchorEnabled = userLocationLayer.anchorEnabled();
System.out.println("Anchor enabled: " + anchorEnabled);

Kotlin code snippet:

val anchorEnabled = userLocationLayer!!.anchorEnabled
println("Anchor enabled: $anchorEnabled")

Reimplemented from com.navigine.idl.java.UserLocationLayer.

Definition at line 54 of file UserLocationLayerBinding.java.

◆ followMode()

UserLocationFollowMode com.navigine.idl.java.internal.UserLocationLayerBinding.followMode ( )
inline

Returns the current follow mode.

Java code snippet:

UserLocationFollowMode followMode = userLocationLayer.followMode();
System.out.println("Follow mode: " + followMode);

Kotlin code snippet:

val followMode = userLocationLayer!!.followMode
println("Follow mode: $followMode")

Reimplemented from com.navigine.idl.java.UserLocationLayer.

Definition at line 82 of file UserLocationLayerBinding.java.

◆ headingModeActive()

boolean com.navigine.idl.java.internal.UserLocationLayerBinding.headingModeActive ( )
inline

Returns true if heading-up mode is enabled. Same as followMode() == HEADING.

Java code snippet:

boolean headingModeActive = userLocationLayer.headingModeActive();
System.out.println("Heading-up mode active: " + headingModeActive);

Kotlin code snippet:

val headingModeActive = userLocationLayer!!.headingModeActive
println("Heading-up mode active: $headingModeActive")

Reimplemented from com.navigine.idl.java.UserLocationLayer.

Definition at line 68 of file UserLocationLayerBinding.java.

◆ isValid()

native boolean com.navigine.idl.java.internal.UserLocationLayerBinding.isValid ( )

Tells if this UserLocationLayer is valid or not. Any other method (except for this one) called on an invalid UserLocationLayer will throw java.lang.RuntimeException.

Reimplemented from com.navigine.idl.java.UserLocationLayer.

◆ isVisible()

boolean com.navigine.idl.java.internal.UserLocationLayerBinding.isVisible ( )
inline

Returns true if user location layer is visible.

Java code snippet:

boolean visible = userLocationLayer.isVisible();
System.out.println("User location layer is visible: " + visible);

Kotlin code snippet:

val visible = userLocationLayer!!.isVisible
println("User location layer is visible: $visible")

Reimplemented from com.navigine.idl.java.UserLocationLayer.

Definition at line 33 of file UserLocationLayerBinding.java.

◆ resetAnchor()

void com.navigine.idl.java.internal.UserLocationLayerBinding.resetAnchor ( )
inline

Resets anchor to default (center).

Java code snippet:

userLocationLayer.resetAnchor();
System.out.println("Anchor reset to default");

Kotlin code snippet:

userLocationLayer!!.resetAnchor()
println("Anchor reset to default")

Reimplemented from com.navigine.idl.java.UserLocationLayer.

Definition at line 47 of file UserLocationLayerBinding.java.

◆ setAccuracyColor()

void com.navigine.idl.java.internal.UserLocationLayerBinding.setAccuracyColor ( int color)
inline

Sets the accuracy-circle fill. Default is a translucent blue.

Java code snippet:

userLocationLayer.setAccuracyColor(0x4230AAD9);
System.out.println("Accuracy circle color updated");

Kotlin code snippet:

userLocationLayer!!.setAccuracyColor(0x4230AAD9)
println("Accuracy circle color updated")

Reimplemented from com.navigine.idl.java.UserLocationLayer.

Definition at line 96 of file UserLocationLayerBinding.java.

◆ setAnchor()

void com.navigine.idl.java.internal.UserLocationLayerBinding.setAnchor ( android.graphics.PointF anchor)
inline

Sets anchor point for user indicator in screen pixels.

Java code snippet:

ScreenPoint anchor = new ScreenPoint(100.0f, 200.0f);
userLocationLayer.setAnchor(anchor);
System.out.println("Set user location anchor to: (" + anchor.getX() + ", " + anchor.getY() + ")");

Kotlin code snippet:

val anchor = ScreenPoint(100.0f, 200.0f)
userLocationLayer!!.setAnchor(anchor)
println("Set user location anchor to: (${anchor.x}, ${anchor.y})")

Reimplemented from com.navigine.idl.java.UserLocationLayer.

Definition at line 40 of file UserLocationLayerBinding.java.

◆ setArrowBitmap()

void com.navigine.idl.java.internal.UserLocationLayerBinding.setArrowBitmap ( com.navigine.image.ImageProvider bitmap)
inline

Replaces the heading arrow bitmap. Null restores the built-in heading fan.

Java code snippet:

userLocationLayer.setArrowBitmap(ImageProvider.fromFile("/path/to/arrow.png", true));
userLocationLayer.setArrowBitmap(null);
System.out.println("Custom arrow bitmap cleared");

Kotlin code snippet:

userLocationLayer!!.setArrowBitmap(ImageProvider.fromFile("/path/to/arrow.png", true))
userLocationLayer!!.setArrowBitmap(null)
println("Custom arrow bitmap cleared")

Reimplemented from com.navigine.idl.java.UserLocationLayer.

Definition at line 89 of file UserLocationLayerBinding.java.

◆ setFollowMode()

void com.navigine.idl.java.internal.UserLocationLayerBinding.setFollowMode ( UserLocationFollowMode mode)
inline

Sets how the camera follows the user. NONE stops following and keeps a previously set anchor point. POSITION, HEADING and COURSE follow even without setAnchor (screen center). setAnchor() from NONE switches to POSITION. resetAnchor() switches to NONE. setHeadingModeActive(true) switches to HEADING.

Java code snippet:

userLocationLayer.setFollowMode(UserLocationFollowMode.HEADING);
System.out.println("Follow mode set to heading");

Kotlin code snippet:

userLocationLayer!!.setFollowMode(UserLocationFollowMode.HEADING)
println("Follow mode set to heading")

Reimplemented from com.navigine.idl.java.UserLocationLayer.

Definition at line 75 of file UserLocationLayerBinding.java.

◆ setHeadingModeActive()

void com.navigine.idl.java.internal.UserLocationLayerBinding.setHeadingModeActive ( boolean active)
inline

Enables or disables heading-up mode while the user location layer is anchored.

When enabled and a location heading is available, the map camera rotates to keep the user's heading pointed toward the top of the screen. Without an anchor the location icon keeps rotating independently.

Java code snippet:

userLocationLayer.setHeadingModeActive(true);
System.out.println("Heading-up mode enabled");

Kotlin code snippet:

userLocationLayer!!.setHeadingModeActive(true)
println("Heading-up mode enabled")

Reimplemented from com.navigine.idl.java.UserLocationLayer.

Definition at line 61 of file UserLocationLayerBinding.java.

◆ setVisible()

void com.navigine.idl.java.internal.UserLocationLayerBinding.setVisible ( boolean visible)
inline

Shows or hides user location layer.

Java code snippet:

userLocationLayer.setVisible(true);
System.out.println("User location layer set visible");

Kotlin code snippet:

userLocationLayer!!.setVisible(true)
println("User location layer set visible")

Reimplemented from com.navigine.idl.java.UserLocationLayer.

Definition at line 26 of file UserLocationLayerBinding.java.


The documentation for this class was generated from the following file: