Documentation ¶
Index ¶
- func AppBeginBackgroundTask(pusher PushNotifier)
- func AppBeginBackgroundTaskNonblock(pusher PushNotifier)
- func AppDidEnterBackground() bool
- func AppWillExit(pusher PushNotifier)
- func BackgroundSync()
- func ForceGC()
- func HandleBackgroundNotification(strConvID, body, serverMessageBody, sender string, intMembersType int, ...) (err error)
- func HandlePostTextReply(strConvID, tlfName string, intMessageID int, body string) (err error)
- func Init(homeDir, mobileSharedHome, logFile, runModeStr string, ...) (err error)
- func InitOnce(homeDir, mobileSharedHome, logFile, runModeStr string, ...)
- func IsAppStateForeground() bool
- func LogSend(statusJSON string, feedback string, sendLogs, sendMaxBytes bool, ...) (res string, err error)
- func ReadB64() (res string, err error)
- func Reset() error
- func SetAppStateBackground()
- func SetAppStateBackgroundActive()
- func SetAppStateForeground()
- func SetAppStateInactive()
- func Version() string
- func WriteB64(str string) (err error)
- type ChatNotification
- type ExternalDNSNSFetcher
- type InstallReferrerListener
- type Message
- type NativeInstallReferrerListener
- type NativeVideoHelper
- type Person
- type PushNotifier
- type StringReceiver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppBeginBackgroundTask ¶
func AppBeginBackgroundTask(pusher PushNotifier)
AppBeginBackgroundTask notifies us that an app background task has been started on our behalf. This function will return once we no longer need any time in the background.
func AppBeginBackgroundTaskNonblock ¶
func AppBeginBackgroundTaskNonblock(pusher PushNotifier)
func AppDidEnterBackground ¶ added in v1.0.48
func AppDidEnterBackground() bool
AppDidEnterBackground notifies the service that the app is in the background [iOS] returning true will request about ~3mins from iOS to continue execution
func AppWillExit ¶ added in v1.0.48
func AppWillExit(pusher PushNotifier)
AppWillExit is called reliably on iOS when the app is about to terminate not as reliably on android
func BackgroundSync ¶
func BackgroundSync()
func HandlePostTextReply ¶
func Init ¶
func Init(homeDir, mobileSharedHome, logFile, runModeStr string, accessGroupOverride bool, externalDNSNSFetcher ExternalDNSNSFetcher, nvh NativeVideoHelper, mobileOsVersion string, isIPad bool, installReferrerListener NativeInstallReferrerListener) (err error)
Init runs the Keybase services
func InitOnce ¶
func InitOnce(homeDir, mobileSharedHome, logFile, runModeStr string, accessGroupOverride bool, dnsNSFetcher ExternalDNSNSFetcher, nvh NativeVideoHelper, mobileOsVersion string, isIPad bool, installReferrerListener NativeInstallReferrerListener)
InitOnce runs the Keybase services (only runs one time)
func IsAppStateForeground ¶
func IsAppStateForeground() bool
func LogSend ¶
func LogSend(statusJSON string, feedback string, sendLogs, sendMaxBytes bool, traceDir, cpuProfileDir string) (res string, err error)
LogSend sends a log to Keybase
func ReadB64 ¶
ReadB64 is a blocking read for base64 encoded msgpack rpc data. It is called serially by the mobile run loops.
func SetAppStateBackground ¶ added in v1.0.48
func SetAppStateBackground()
func SetAppStateBackgroundActive ¶ added in v1.0.48
func SetAppStateBackgroundActive()
func SetAppStateForeground ¶ added in v1.0.48
func SetAppStateForeground()
func SetAppStateInactive ¶ added in v1.0.48
func SetAppStateInactive()
Types ¶
type ChatNotification ¶
type ExternalDNSNSFetcher ¶ added in v1.0.21
type ExternalDNSNSFetcher interface {
GetServers() []byte
}
type InstallReferrerListener ¶
type InstallReferrerListener struct {
// contains filtered or unexported fields
}
InstallReferrerListener is a wrapper around NativeInstallReferrerListener to work around gomobile/gobind limitations while preventing import cycles.
func (InstallReferrerListener) StartInstallReferrerListener ¶
func (i InstallReferrerListener) StartInstallReferrerListener(callback service.StringReceiver)
type NativeInstallReferrerListener ¶
type NativeInstallReferrerListener interface { // StartInstallReferrerListener is used to get referrer information from the // google play store on Android (to implement deferred deep links). This is // asynchronous (due to the underlying play store api being so): pass it a // callback function which will be called with the referrer string once it // is available (or an empty string in case of errors). StartInstallReferrerListener(callback StringReceiver) }
NativeInstallReferrerListener is implemented in Java on Android.
type NativeVideoHelper ¶
type PushNotifier ¶
type StringReceiver ¶
type StringReceiver interface {
CallbackWithString(s string)
}