1# FullScreenLaunchComponent 2 3 4全屏启动原子化服务组件,当被拉起方授权使用方可以嵌入式运行原子化服务时,使用方全屏嵌入式运行原子化服务;未授权时,使用方跳出式拉起原子化服务。 5 6 7> **说明:** 8> 9> 该组件从API Version 12开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 10> 11> 如果需要在该组件中实现一个可嵌入式运行的原子化服务时,必须继承自[EmbeddableUIAbility](../../apis-ability-kit/js-apis-app-ability-embeddableUIAbility.md)。若不继承自EmbeddableUIAbility,系统无法保证原子化服务功能正常。 12 13 14## 导入模块 15 16``` 17import { FullScreenLaunchComponent } from '@kit.ArkUI' 18``` 19 20 21## 子组件 22 23无 24 25## 属性 26不支持[通用属性](ts-universal-attributes-size.md) 27 28## FullScreenLaunchComponent 29 30FullScreenLaunchComponent({ content: Callback\<void>, appId: string, options?: AtomicServiceOptions }) 31 32**装饰器类型:**\@Component 33 34**原子化服务API:** 从API version 12开始,该接口支持在原子化服务中使用。 35 36**系统能力:** SystemCapability.ArkUI.ArkUI.Full 37 38 39**参数:** 40 41 42| 名称 | 类型 | 必填 | 装饰器类型 | 说明 | 43| -------- | -------- | -------- | -------- | -------- | 44| content | Callback\<void> | 是 | \@BuilderParam | 组件显示内容。 | 45| appId | string | 是 | - | 原子化服务appId。 | 46| options | [AtomicServiceOptions](../../apis-ability-kit/js-apis-app-ability-atomicServiceOptions.md) | 否 | - | 拉起原子化服务参数。 | 47 48## 事件 49不支持[通用事件](ts-universal-events-click.md) 50 51## 示例 52 53```ts 54import { FullScreenLaunchComponent } from '@kit.ArkUI'; 55 56@Entry 57@Component 58struct Index { 59 @State appId: string = '6918661953712445909'; 60 61 build() { 62 Row() { 63 Column() { 64 FullScreenLaunchComponent({ 65 content: ColumChild, 66 appId: this.appId, 67 options: {} 68 }).width("80vp").height("80vp") 69 } 70 .width('100%') 71 } 72 .height('100%') 73 } 74} 75 76@Builder 77function ColumChild() { 78 Column() { 79 Image($r('app.media.icon')) 80 Text('test') 81 } 82} 83``` 84