1 Star 0 Fork 5K

vv_justdoit / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
OHOS-AbilityContext.md 4.61 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

OHOS::AbilityContext

Overview

Related Modules:

AbilityKit

Description:

Provides functions for starting and stopping an ability.

The Ability and AbilitySlice classes are inherited from the AbilityContext class for you to call functions in this class for application development.

Since:

1.0

Version:

1.0

Summary

Public Member Functions

Public Member Function Name

Description

StartAbility (const Want &want)

int 

Starts an Ability based on the specified Want information.

StopAbility (const Want &want)

int 

Stops an Ability based on the specified Want information.

TerminateAbility ()

int 

Destroys this Ability.

ConnectAbility (const Want &want, const IAbilityConnection &conn, void *data)

int 

Connects to a Service ability based on the specified Want information.

DisconnectAbility (const IAbilityConnection &conn)

int 

Disconnects from a Service ability.

1
https://gitee.com/vv-justdoit/docs.git
git@gitee.com:vv-justdoit/docs.git
vv-justdoit
docs
docs
master

搜索帮助