Constructor 링크 복사
사용 중인 KNSDK
의 버전을 반환합니다.
+ (NSString *) | sdkVersion |
KNSDK
의 싱글톤 객체(Singleton Object)를 반환합니다.
+ (nullable KNSDK *) | sharedInstance |
KNSDK
의 싱글톤 객체(Singleton Object)를 해제합니다.
+ (void) | releaseInstance |
애플리케이션이 일시 정지(pause) 상태가 되면 해당 정보를 KNSDK
에 전달합니다.
+ (void) | handleWillResignActive |
- (void)applicationWillResignActive:(UIApplication *)application {
[KNSDK handleWillResignActive];
}
- (void)applicationWillResignActive:(UIApplication *)application {
[KNSDK handleWillResignActive];
}
애플리케이션이 백그라운드(Background) 상태가 되면 해당 정보를 KNSDK
에 전달합니다.
+ (void) | handleDidEnterBackground |
- (void)applicationDidEnterBackground:(UIApplication *)application {
[KNSDK handleDidEnterBackground];
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
[KNSDK handleDidEnterBackground];
}
애플리케이션이 포그라운드(Foreground) 상태가 되면 해당 정보를 KNSDK
에 전달합니다.
+ (void) | handleWillEnterForeground |
- (void)applicationWillEnterForeground:(UIApplication *)application {
[KNSDK handleWillEnterForeground];
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
[KNSDK handleWillEnterForeground];
}
애플리케이션이 재개(Resume) 상태가 되면 해당 정보를 KNSDK
에 전달합니다. 상태가 재개될 경우 음성 안내의 일시 정지 상태가 해제됩니다.
+ (void) | handleDidBecomeActive |
- (void)applicationDidBecomeActive:(UIApplication *)application {
[KNSDK handleDidBecomeActive];
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
[KNSDK handleDidBecomeActive];
}
애플리케이션이 종료되면 해당 정보를 KNSDK에 전달합니다. 애플리케이션이 종료되는 시점에 주행 중인 경로가 있으면 해당 상태 값과 경로를 저장합니다.
+ (void) | handleWillTerminate |
- (void)applicationWillTerminate:(UIApplication *)application {
[KNSDK handleWillTerminate];
}
- (void)applicationWillTerminate:(UIApplication *)application {
[KNSDK handleWillTerminate];
}
애플리케이션이 차량용 인포테인먼트(In-Vehicle Infotainment)와 연결되었음을 KNSDK
에 전달합니다.
+ (void) | handleCarInterfaceConnected |
애플리케이션과 차량용 인포테인먼트(In-Vehicle Infotainment)의 연결이 해제되었음을 KNSDK
에 전달합니다.
+ (void) | handleCarInterfaceDisconnected |
함수 링크 복사
KNSDK
를 초기화합니다.
KNSDK
를 사용하기 전에 반드시 초기화를 진행해야 합니다.
- (void) | initializeWithAppKey: | (NSString *) | aAppKey |
clientVersion: | (NSString *) | aClientVersion | |
userKey: | (NSString *_Nullable) | aUserKey | |
langType: | (KNLanguageType) | aLangType | |
mapType: | (KNMapType) | aMapType | |
completion: | (void ( ^ ) ( KNError *aError )) | aCompletion |
[[KNSDK sharedInstance] initializeWithApiKey:@"API Key" userKey:@"User Key" langType:KNLanguageType_KOREAN completion:^(KNError *error) {
if (error)
{
// SDK 초기화 실패
}
else
{
// SDK 초기화 성공
}
}];
[[KNSDK sharedInstance] initializeWithApiKey:@"API Key" userKey:@"User Key" langType:KNLanguageType_KOREAN completion:^(KNError *error) {
if (error)
{
// SDK 초기화 실패
}
else
{
// SDK 초기화 성공
}
}];
- aAppKey
- KNSDK 사용을 위해 발급된 AppKey
- aLangType
- 언어 설정
- aUserKey
- 사용자를 식별하기 위한 UserKey. 키 값은 서비스에서 발급되며 KNSDK에서는 해당 값을 이용해 개별 사용자를 식별하고 개인화 서비스를 제공할 수 있음.
- aMapType
- 맵 타입(MapType) 설정
- aCompletion
- 초기화 완료 후 결과 상태 전달
현재 지도의 버전입니다.
- (SInt32) | mapVersion |
맵 뷰 객체를 요청합니다. 내부적으로 로더, 스타일러, 렌더러를 바인딩하고 초기화한 다음 전달합니다.
맵 뷰 객체는 반드시 KNSDK
를 통해 생성되어야 합니다.
- (KNMapView *_Nullable) | makeMapViewWithFrame: | (CGRect) | aFrame |
지도 다운로더입니다. 전체 지도를 다운로드 할 때 사용합니다.
- (KNMapDownLoader *) | sharedMapDownLoader |
현재 사용 중인 지도의 타입입니다.
- (KNMapType) | getMapType |
지도 타입을 선택합니다. 클라우드 기반의 지도와 로컬에 다운받는 지도 타입에서 선택할 수 있습니다.
- (void) | setMapType: | (KNMapType) | aMapType |
complition: | (void ( ^ ) ( KNError *)) | aCompletion |
지도의 캐시 데이터를 삭제합니다.
- (void) | mapCacheDeleteCompletion: | (void ( ^ ) ( KNError *aError )) | aCompletion |
KNTrip
을 생성합니다.
- (void) | makeTripWithStart: | (KNPOI *) | aStart |
goal: | (KNPOI *) | aGoal | |
vias: | (NSArray<KNPOI*> *_Nullable) | aVias | |
completion: | (void ( ^ ) ( KNError *aError , KNTrip *aTrip )) | aCompletion |
- aStart
- 출발지
- aGoal
- 도착지
- aVias
- 경유지 리스트
- aCompletion
- 경로 전달 블록
KNGuidance
를 가져옵니다. 현재 KNGuidance
는 한 개만 존재합니다.
- (KNGuidance *) | sharedGuidance |
POI(관심 지점)을 검색합니다.
- (void) | reqPoiText: | (NSString *) | aText |
page: | (int) | aPage | |
completion: | (void ( ^ ) ( KNError *, NSDictionary *)) | aCompletion |
- aText
- 명칭
- aPage
- 검색 페이지
사용자를 구분하기 위한 키(UserKey) 값을 KNSDK
에 전달합니다.
- (void) | setUserKey: | (NSString *_Nullable) | aUserKey |
- aUserKey
- 사용자를 식별하기 위한 UserKey. 키 값은 서비스에서 발급되며 KNSDK에서는 해당 값을 이용해 개별 사용자를 식별하고 개인화 서비스를 제공할 수 있음.
KNGPSManager
를 가져옵니다. 현재 KNGPSManager
는 한 개만 존재합니다.
- (KNGPSManager *) | sharedGpsManager |
카텍(KATEC) 좌표에 해당하는 행정동 주소를 반환합니다. 반환되는 값은 에러 코드, 행정 코드, 도 명칭, 시군구 명칭, 동 명칭 순으로 반환되며 이를 조합하여 사용합니다.
- (void) | reverseGeocodeWithPos: | (IntPoint) | aKatecPos |
completion: | (void ( ^ ) ( KNError *_Nullable aError , NSString *_Nullable aAddrCode , NSString *_Nullable aDoName , NSString *_Nullable aSiGunGuName , NSString *_Nullable aDongName )) | aCompletion |
- aKatecPos
- 주소로 반환될 카텍(KATEC) 좌표
- aCompletion
- 카텍(KATEC) 좌표에 해당하는 행정동 주소
WGS84 좌표를 카텍(KATEC) 좌표로 변환하여 반환합니다.
- (IntPoint) | convertWGS84ToKATECWithLongitude: | (double) | aWgs84Lon |
latitude: | (double) | aWgs84Lat |
- aWgs84Lon
- WGS84 좌표의 경도 값
- aWgs84Lat
- WGS84 좌표의 위도 값
카텍(KATEC) 좌표를 WGS84 좌표로 변환하여 반환합니다.
- (DoublePoint) | convertKATECToWGS84WithX: | (SInt32) | aKatecX |
y: | (SInt32) | aKatecY |
- aKatecX
- 카텍(KATEC) 좌표계의 X 값
- aKatecY
- 카텍(KATEC) 좌표계의 Y 값
KNGPSManager
에 위치 정보를 전달받기 위한 리시버(receiver)를 등록합니다. 위치 정보가 수신될 경우 등록된 리시버를 통해 위치 정보가 전달됩니다.
- (void) | requestLocationUpdate: | (id <KNGPSReceiver>) | aGPSReceiver |
- aGPSReceiver
- 등록할 리시버
KNConnection
을 가져옵니다. 현재 KNConnection
은 한 개만 존재합니다.
- (KNConnection *) | sharedConnection |
KNParkingLotManager를 가져옵니다. 주차장 정보를 요청하고 받을 수 있습니다. 현재 KNParkingLotManager는 한 개만 존재합니다.
- (KNParkingLotManager *) | sharedParkingLotManager; |
배율을 설정하여 관심 지점(Point of Interest, POI)의 크기를 조정합니다. (최솟값: 0.5, 최댓값: 2.0)
- (void) | setPOIRatio: | (float) | aPOIRatio |
건물을 지도상에서 평탄하게 표현할지 여부를 설정합니다. (기본 값: NO
)
- (void) | setBuildingFlat: | (bool) | isBuildingFlat |