Sketchware

Sketchware

  • Docs
  • Community
  • Blog

›Components

The Basics

  • Getting Started
  • Creating a New Project
  • Designing Your App
  • Programming Your App
  • Adding Components
  • Adding Resources

Firebase

  • Getting Started
  • Linking Android App
  • Project Settings
  • Setting Database Rules
  • Enabling Login Methods
  • Enabling Firebase Storage

AdMob

  • Getting Started
  • Creating Ad Unit
  • Sketchware AdMob Settings

Publishing

  • Getting Started
  • Creating a Service Account
  • First Time Publishing

Components

  • Intent
  • SharedPreference
  • Calendar
  • Vibrator
  • Timer
  • Dialog
  • MediaPlayer
  • SoundPool
  • ObjectAnimator
  • Camera
  • FilePicker
  • Gyroscope
  • Firebase DB
  • Firebase Auth
  • Firebase Storage

Firebase Storage

Firebase Storage component is used to save and download files from an online storage.

Example

Uploading an image file after using Camera component to take a picture.

example



Blocks

upload file

Upload file to path with the given name.

upload file

TypeExplanationRequired
Firebase StorageFirebase Storage ComponentYes
StringPath to the file to be uploadedYes
StringName to save the file asYes

download file

Download file from url to given path.

download file

TypeExplanationRequired
Firebase StorageFirebase Storage ComponentYes
StringURL of the fileYes
StringPath to save the file toYes

delete file

Delete file at the given Firebase Storage URL.

delete file

TypeExplanationRequired
Firebase StorageFirebase Storage ComponentYes
StringURL of the file in Firebase StorageYes

Events

onFailure

Triggered when the file failed to upload or download.

onUploadSuccess

Triggered when the file successfully uploaded.

onUploadProgress

Triggered when the file starts uploading.

onDownloadProgress

Triggered when the file starts downloading.

onDownloadSuccess

Triggered when the file successfully downloaded.

onDeleteSuccess

Triggered when the file is successfully deleted.

← Firebase Auth
  • Example
  • Blocks
    • upload file
    • download file
    • delete file
  • Events
    • onFailure
    • onUploadSuccess
    • onUploadProgress
    • onDownloadProgress
    • onDownloadSuccess
    • onDeleteSuccess
Sketchware
Docs
Getting Started
Community
FacebookSlack
More
BlogMedium
Copyright © 2018 Sketchware