INVMapSdk


@interface INVMapSdk : NSObject

아이나비 지도 SDK의 인증을 담당하는 클래스. 아이나비 지도 SDK를 사용하기 위해서는 아래 중 한 가지 방법으로 Appkey 설정을 해주어야 합니다.

1. info.plist에 지정하는 방식

examples

<dict>
    <key>iNaviAppKey</key>
    <string>YOUR_APP_KEY</string>
<dict>

2. Application 생성 시점에 Appkey를 설정하는 함수를 동적으로 호출

INVMapSdk.sharedInstance().appKey = "YOUR_APP_KEY"
  • 싱글턴 객체 접근

    Declaration

    Objective-C

    + (nonnull instancetype)sharedInstance;

    Swift

    class func sharedInstance() -> Self
  • 지도 캐시 데이터를 삭제합니다.

    Declaration

    Objective-C

    - (void)clearCache;

    Swift

    func clearCache()
  • 오픈 소스 라이선스 UIViewController를 표출합니다.

    Declaration

    Objective-C

    + (void)presentLicenseViewController;

    Swift

    class func presentLicenseViewController()
  • 법적 공지 UIViewController를 표출합니다.

    Declaration

    Objective-C

    + (void)presentLegalNoticeViewController;

    Swift

    class func presentLegalNoticeViewController()
  • 지도 인증 실패 시 전달되는 delegate

    Declaration

    Objective-C

    @property (readwrite, nonatomic) id<INVMapSdkDelegate> _Nullable delegate;

    Swift

    weak var delegate: INVMapSdkDelegate? { get set }
  • 지도 인증 AppKey

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) NSString *appKey;

    Swift

    var appKey: String? { get set }