Photos Library
Library for working with cloud photos.
Using in your project
Gradle
dependencies {
implementation("com.cloudike.sdk:core:x.x.x")
implementation("com.cloudike.sdk:photos:x.x.x")
}
Content copied to clipboard
Beginning of work
import com.cloudike.sdk.core.CoreManager
import com.cloudike.sdk.photos.PhotoManager
// Create core instance. Its not a singleton
val coreManager = CoreManager.build(applicationContext)
// Create photo library instance. Its not a singleton
val photoManager = PhotoManager.build(coreManager)
// Get session manager
val sessionManager = coreManager.sessionManager
// Start session
sessionManager.start(
baseUrl = "https://base-url/",
accessToken = "access token",
profileId = "profile id",
userAgent = "user agent"
)
Content copied to clipboard
Introduction To Photo Library Logging
The Photo Library uses the logging prefix "Ph". Log example.
PhotosSession : [Ph] Starts session
Content copied to clipboard