Skip navigation links

Layar SDK

Layar SDK

See: Description

Packages 
Package Description
com.layar.sdk  
com.layar.sdk.data  
com.layar.sdk.location  

Layar SDK

Introduction

The Layar SDK offers a an Android Library that implements the core functionality of Layar. Using the Layar SDK, it is possible to start our camera view in scan mode and allow your users to scan images (pages, posters, etc.) from your layers and campaigns. It also allows you to open specific layers (primarily used for geo layers). It provides simple methods for integration in your own app.

Requirements

The Layar SDK supports Android 2.3 and above. It was developed and tested using the Android Developer Tools (ADT) v23 and uses targetSdkVersion 23 (Android 6.0). In the documentation, we assume the use of Android Studio as the IDE and gradle as the build process.

NOTE: since Layar SDK version 8.4.3, we dropped support for Eclipse. Earlier versions are still available as an Android Library project. As Eclipse has officially been deprecated by Google, we recommend to switch to Android Studio. If you really need to keep working on Eclipse, there are ways to convert an .aar file to a library project you could try, but we don't provide support for this.

Applications build with the SDK have a couple of hardware/software requirements that will be automatically applied to your application:

Project setup

The Layar SDK is distributed as an AAR library bundled inside the SDK distribution package, and through our private maven repository (URL available on request). You need to add a dependency to the library in one of these 2 ways.

Usage

To use the Layar SDK, all you need to do is interact with the LayarSDK class. This contains two simple static methods for initialization and starting the Activity.

NOTE: You are not allowed to alter the size and visibility of the "Powered by Layar" logo as stated in the terms and conditions. When making bigger changes to the appearance of the view, please consult with Layar to verify whether this is acceptable.

Skip navigation links