Loading...
Searching...
No Matches
ObjectiveC Location View Elements

List of location view elements for Navigine iOS SDK. More...

Topics

 ObjectiveC Default Navigation View
 NCDefaultNavigationView and its built-in widgets (zoom, floor selector, follow me)
 

Classes

class  NCBuilding
 Interface for a building with multiple floors (Sublocations). Allows selecting the active floor directly via setActiveSublocationId. More...
 
protocol  <NCBuildingListener>
 Listener for outdoor scenario when camera focuses on a building or leaves it. More...
 
class  NCCamera
 Class describing position of the camera. More...
 
protocol  <NCCameraListener>
 Class is used to listen for camera updates. More...
 
class  NCCircleMapObject
 Represents a circle on the location view. More...
 
class  NCDefaultNavigationView
 Ready-to-use navigation view with built-in UI: “follow me” toggle and user location layer. zoom controls, floor selector, follow me toggle and user location layer. Automatically wires SDK listeners (location, sublocation, camera) and keeps widgets in sync. Use NCDefaultNavigationViewConfig to customize; config can be updated at runtime via the config property. More...
 
class  NCDottedPolylineMapObject
 Represents a polyline object with points placed along it on the location view. More...
 
class  NCIconMapObject
 Represents an icon object on the location view. More...
 
class  NCImage
 class described image data in SDK More...
 
protocol  <NCInputListener>
 Class is used to listen for interactions with location view. More...
 
class  NCLocationView
 Class is used to display a Navigine location via iOS UIView. More...
 
class  NCLocationWindow
 Interface for interacting with the location view. More...
 
class  NCMapFilterCondition
 A single filter condition: property must match one of the given values. More...
 
class  NCMapObject
 Base interface for handling objects on the location view. More...
 
class  NCMapObjectPickResult
 Class is useed to handle information in PickListener. More...
 
protocol  <NCPickListener>
 Class is used to handle for picking objects on the location view. More...
 
class  NCPolygonMapObject
 Represents a polygon object on the location view. More...
 
class  NCPolylineMapObject
 Represents a polyline object on the location view. More...
 
protocol  <NCSublocationChangeListener>
 Class is used to listen for sublocation change events. More...
 
class  NCUserLocationView
 

Typedefs

typedef void(^ NCCameraCallback) (BOOL completed)
 Callback specified after the camera movement is stopped.
 

Enumerations

enum  NCAnimationType {
  NCAnimationTypeNone ,
  NCAnimationTypeLinear ,
  NCAnimationTypeCubic ,
  NCAnimationTypeQuint ,
  NCAnimationTypeSine
}
 Enum described animation functions. More...
 
enum  NCCameraUpdateReason {
  NCCameraUpdateReasonGestures ,
  NCCameraUpdateReasonApplication
}
 Reason of the camera update. More...
 
enum  NCCapType {
  NCCapTypeBUTT ,
  NCCapTypeSQUARE ,
  NCCapTypeROUND
}
 Enum defining the type of cap for polyline ends. More...
 
enum  NCDebugFlag {
  NCDebugFlagNone ,
  NCDebugFlagInfos ,
  NCDebugFlagStats ,
  NCDebugFlagLabels ,
  NCDebugFlagDrawAllLabels ,
  NCDebugFlagSelectionBuffer
}
 Debug visualization flags for the map view LocationWindow. More...
 
enum  NCImageType {
  NCImageTypePNG ,
  NCImageTypeSVG ,
  NCImageTypeJPG
}
 Enum described supported image types. More...
 
enum  NCJoinType {
  NCJoinTypeMITER ,
  NCJoinTypeBEVEL ,
  NCJoinTypeROUND
}
 Enum defining the type of join for polyline segments. More...
 
enum  NCMapObjectType {
  NCMapObjectTypeICON ,
  NCMapObjectTypePOLYGON ,
  NCMapObjectTypePOLYLINE ,
  NCMapObjectTypeDOTTEDPOLYLINE ,
  NCMapObjectTypeCIRCLE
}
 Enum defining the type of map object. More...
 
enum  NCPlacement {
  NCPlacementVERTEX ,
  NCPlacementMIDPOINT ,
  NCPlacementSPACED
}
 Enum defining the placement mode for points along a polyline. More...
 

Detailed Description

List of location view elements for Navigine iOS SDK.

Typedef Documentation

◆ NCCameraCallback

typedef void(^ NCCameraCallback) (BOOL completed)

Callback specified after the camera movement is stopped.

Referenced from: LocationWindow.

Called when the move if finished.

Parameters
completeddetermine whether the movement is finished or cancelled

Swift code snippet:

func onMoveFinished(completed: Bool) {
if completed {
print("Camera movement completed successfully")
} else {
print("Camera movement was cancelled")
}
}

Objective C code snippet:

- (void)onMoveFinishedWithCompleted:(BOOL)completed {
NSLog(@"Camera move animation %@", completed ? @"completed" : @"cancelled");
}

Definition at line 32 of file NCCameraCallback.h.

Enumeration Type Documentation

◆ NCAnimationType

Enum described animation functions.

Referenced from CircleMapObject, IconMapObject, LocationWindow.

Swift code snippet:

let animationTypes: [NCAnimationType] = [
.linear,
.cubic,
.quint,
.sine,
.none,
]

Objective C code snippet:

NSArray *animationTypes = @[
@(NCAnimationTypeLinear),
@(NCAnimationTypeCubic),
@(NCAnimationTypeQuint),
@(NCAnimationTypeSine),
@(NCAnimationTypeNone),
];
Enumerator
NCAnimationTypeNone 

disable animation

NCAnimationTypeLinear 

animation according to formula f(t) = t.

NCAnimationTypeCubic 

animation according to formula f(t) = (-2 * t + 3) * t * t.

NCAnimationTypeQuint 

animation according to formula f(t) = (6 * t * t - 15 * t + 10) * t * t * t.

NCAnimationTypeSine 

animation according to formula f(t) = 0.5 - 0.5 * cos(PI * t).

Definition at line 25 of file NCAnimationType.h.

◆ NCCameraUpdateReason

Reason of the camera update.

Referenced from CameraListener.

Enumerator
NCCameraUpdateReasonGestures 

user manipulation.

For example: zoom, scroll, rotate, fling.

NCCameraUpdateReasonApplication 

Application.

By calling the LocationLiew::move methods.

Definition at line 15 of file NCCameraUpdateReason.h.

◆ NCCapType

enum NCCapType

Enum defining the type of cap for polyline ends.

Referenced from PolylineMapObject.

Enumerator
NCCapTypeBUTT 

No points added to the end of the line.

NCCapTypeSQUARE 

Two points added to make a square extension.

NCCapTypeROUND 

Six points added in a fan to make a round cap.

Definition at line 16 of file NCCapType.h.

◆ NCDebugFlag

Debug visualization flags for the map view LocationWindow.

Swift code snippet:

let allFlags: [NCDebugFlag] = [.none, .infos, .stats, .labels, .drawAllLabels, .selectionBuffer]
print("Debug flag enum values: \‍(allFlags.count)")

Objective C code snippet:

NSArray<NSNumber *> *allFlags = @[
@(NCDebugFlagNone),
@(NCDebugFlagInfos),
@(NCDebugFlagStats),
@(NCDebugFlagLabels),
@(NCDebugFlagDrawAllLabels),
@(NCDebugFlagSelectionBuffer)
];
NSLog(@"Debug flag enum values: %lu", (unsigned long)allFlags.count);
Enumerator
NCDebugFlagNone 
NCDebugFlagInfos 
NCDebugFlagStats 
NCDebugFlagLabels 
NCDebugFlagDrawAllLabels 
NCDebugFlagSelectionBuffer 

Definition at line 23 of file NCDebugFlag.h.

◆ NCImageType

Enum described supported image types.

Referenced from Image.

Enumerator
NCImageTypePNG 

PNG format.

NCImageTypeSVG 

SVG format.

NCImageTypeJPG 

JPG format.

Definition at line 15 of file NCImageType.h.

◆ NCJoinType

enum NCJoinType

Enum defining the type of join for polyline segments.

Referenced from PolylineMapObject.

Enumerator
NCJoinTypeMITER 

No points added at the line join.

NCJoinTypeBEVEL 

One point added to flatten the corner of a join.

NCJoinTypeROUND 

Five points added in a fan to make a round outer join.

Definition at line 16 of file NCJoinType.h.

◆ NCMapObjectType

Enum defining the type of map object.

Referenced from MapObject.

Enumerator
NCMapObjectTypeICON 

Icon. IconMapObject.

NCMapObjectTypePOLYGON 

Polygon. PolygonMapObject.

NCMapObjectTypePOLYLINE 

Polyline. PolylineMapObject.

NCMapObjectTypeDOTTEDPOLYLINE 

DottedPolyline. DottedPolylineMapObject.

NCMapObjectTypeCIRCLE 

Circle. CircleMapObject.

Definition at line 16 of file NCMapObjectType.h.

◆ NCPlacement

Enum defining the placement mode for points along a polyline.

Referenced from DottedPolylineMapObject.

Enumerator
NCPlacementVERTEX 

Places points at each vertex of the polyline.

NCPlacementMIDPOINT 

Places points at the midpoint of each polyline segment.

NCPlacementSPACED 

Places points at regular intervals along the polyline, controlled by spacing parameters.

Definition at line 16 of file NCPlacement.h.