Airkit's Media Library allows you to easily upload, organize, and access any piece of media you want to include in your Airkit applications. This is where you'll store everything from your custom fonts to the graphics you want to include in your Web Pages. With all your files in one place, you can use them in tandem with Airkit's Activity Builder to experiment with different ways to combine component pieces of media or to simply create customer Journeys that follow existing style guides. This article will cover the following:
- Adding files to and removing files from the Media Library
- Using the contents of your Media Library in your Airkit apps
- Layout of the Media Library
Adding files to and removing files from the Media Library
Here are the file types recognized by Airkit's Media Library:
|Extension||Kind of Document|
|.xlsx||Microsoft Excel (OpenXML)|
|Adobe Portable Document Format|
|.wav||Waveform Audio Format|
|.woff||Web Open Font Format (WOFF)|
|.woff2||Web Open Font Format (WOFF)|
|.gif||Graphics Interchange Format|
|.jpeg, .jpg||JPEG images|
|.png||Portable Network Graphics|
|.svg||Scalable Vector Graphics (SVG)|
As long as the media you want to upload is in one of the above file formats, it can be uploaded to the Media Library in two ways: you can either drag and drop files on your computer directly into the Media Library, or you can click on the Upload button on the upper right and select from the options provided after clicking on the cloud icon in the center. To select a file after uploading it, click the check box on the left.
You can delete content from your Media Library by selecting the file and clicking on the trash icon to the immediate left of the Upload button.
Before being uploaded into the Media Library, assets are scanned for Trojans, viruses, and other malware. If it appears the asset has been corrupted or is otherwise unsafe, that asset will be rejected.
Using the contents of your Media Library in your Airkit apps
Uploading assets to your Media Library gives the Activity Builder seamless access to them, and it's within the Activity Builder that you can define how your users will interact with your assets.
For instance, if you want an uploaded logo, graphic, or gif to appear on a Web Page, you can do so by adding an Image Web Control, and then selecting the appropriate Asset URL from the Control Properties section of the Inspector.
Common use cases for images uploaded to the Media Library include:
- Showing where to find the serial number on a product
- Delighting users with animations
- Creating brand awareness by having your company logo in the Header of every Web Page
- Creating richer, more complex buttons by using image assets to fill the background of said buttons
Layout of the Media Library
The Media Library always displays a list of the assets you have uploaded. At a glance, you'll be able to see the name of each file, as well as its version, its file type, its size, and the last time it was modified. To select a file, click the check box on the left of the name of the file you want to select. This will open up a box on the right that provides additional information about the selected file along with giving you a preview of what the contents look like. This is also where you can access the URI. (URI stands for Uniform Resource Identifier; knowing the URI associated with an asset is useful for, among other things, building out an app that allows users digitally fill out a PDF.)
- Working with Files & Media - Learn about how Airkit handles files and media that are shared with all app users, as well as files and media associated only with a particular user's Journey.
- Working with Assets in Data Operations - Learn about how to create, manipulate, and transmit assets via Data Operations.
- Image Web Control - Learn how to use images from your Media Library in your web app.