Helper resource
This function facilitates the upload of a logo into your application in a single call. Below are examples for different platforms.
Upload platform logo
- Kotlin
- Java
- Swift
- JavaScript
- C#
- Python
// Returns Unit
sdk.helper().uploadPlatformLogo(
applicationId = APPLICATION_ID,
contentType = "CONTENT_TYPE",
image = INPUT_STREAM
)
// Returns a CompletableFuture<Void>
sdk.helper().uploadPlatformLogoAsync(APPLICATION_ID, "CONTENT_TYPE", INPUT_STREAM);
// Returns Void asynchronously
await sdk.helper().uploadPlatformLogo(
applicationId: APPLICATION_ID,
contentType: "CONTENT_TYPE",
image: IMAGE_BYTES
)
// Returns a Promise<any>
await com.doordeck.multiplatform.sdk.api.helper().uploadPlatformLogo(
"APPLICATION_ID",
"CONTENT_TYPE",
IMAGE_BYTES
);
// Returns a Task<object>
await sdk.GetHelper().UploadPlatformLogo(
applicationId: APPLICATION_ID,
contentType: "CONTENT_TYPE",
image: "BASE64_IMAGE"
);
# Returns a Future[SimpleNamespace]
await sdk.helper.upload_platform_logo(
"APPLICATION_ID",
"CONTENT_TYPE",
"BASE64_IMAGE"
)