File

src/modules/firetask/providers/ft-session.ts

Index

Properties
Methods

Constructor

constructor(alert: AlertController, loader: LoadingController, toast: ToastController, storage: Storage, events: Events, googleplus: GooglePlus, facebook: Facebook, file: File, firebasePlugin: Firebase, utils: FtUtilsProvider, menu: MenuController, platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen)
Parameters :
Name Type Optional Description
alert AlertController
loader LoadingController
toast ToastController
storage Storage
events Events
googleplus GooglePlus
facebook Facebook
file File
firebasePlugin Firebase
utils FtUtilsProvider
menu MenuController
platform Platform
statusBar StatusBar
splashScreen SplashScreen

Methods

authWithFacebook
authWithFacebook()

Auth With Facebook

Returns : any

success: token

authWithGoogle
authWithGoogle()

Auth With Google

Returns : any

success: authData.idToken, authData.accessToken

Public current
current()

Returns the current user of firebase instance

Returns : any
db
db()

Database

Returns : any

firebase.database()

Static errorHandler
errorHandler(code: , message: )

Error handler

you can translate here

Parameters :
Name Type Optional Description
code
message
Returns : any

title, message

Public getGCMToken
getGCMToken()

Get GCM token from device

Returns : void
Public initialize
initialize()

Bootstrap the firetask features This method must be fired from root component

Returns : Promise<any>
Public login
login(user: any)
Parameters :
Name Type Optional Description
user any
Returns : any
Public logout
logout()
Returns : void
Public presence
presence()

Observer for user network (on/off)

Returns : void
Public ref
ref()

Returns the firebase path for user

Returns : string
Public setGCMToken
setGCMToken(token: )

Set the user GCM token on databse

Parameters :
Name Type Optional Description
token
Returns : void
showAlert
showAlert(title: , subtitle: )

Show Alert

Parameters :
Name Type Optional Description
title
subtitle
Returns : void

Properties

Public admob
admob: boolean
Type : boolean
Default value : true
Public alert
alert: AlertController
Type : AlertController
Public events
events: Events
Type : Events
Public facebook
facebook: Facebook
Type : Facebook
Private facebookScopes
facebookScopes: any
Type : any
Public file
file: File
Type : File
Public firebase
firebase: any
Type : any
Public firebasePlugin
firebasePlugin: Firebase
Type : Firebase
Public googleplus
googleplus: GooglePlus
Type : GooglePlus
Private googleScopes
googleScopes: string
Type : string
Default value : profile email
Private googleWebClient
googleWebClient: string
Type : string
Public loader
loader: LoadingController
Type : LoadingController
Public loading
loading: boolean
Type : boolean
Default value : false
Public logged
logged: any
Type : any
Public menu
menu: MenuController
Type : MenuController
Public offline
offline: boolean
Type : boolean
Default value : true
Public online
online: boolean
Type : boolean
Default value : false
Public platform
platform: Platform
Type : Platform
Public splashScreen
splashScreen: SplashScreen
Type : SplashScreen
Public statusBar
statusBar: StatusBar
Type : StatusBar
Public storage
storage: Storage
Type : Storage
Public storageUserNamespace
storageUserNamespace: string
Type : string
Default value : firetask:user
Public toast
toast: ToastController
Type : ToastController
Public utils
utils: FtUtilsProvider
Type : FtUtilsProvider

results matching ""

    No results matching ""