1# InnerFullScreenLaunchComponent (系统接口) 2 3 4非显式全屏启动原子化服务组件,拉起方可以选择拉起原子化服务的时机。当被拉起方授权使用方可以嵌入式运行原子化服务时,使用方全屏嵌入式运行原子化服务;未授权时,使用方跳出式拉起原子化服务。 5 6> **说明:** 7> 8> 该组件从API Version 12开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 9> 10> 如果需要在该组件中实现一个可嵌入式运行的原子化服务时,必须继承自[EmbeddableUIAbility](../../apis-ability-kit/js-apis-app-ability-embeddableUIAbility.md)。若不继承自EmbeddableUIAbility,系统无法保证原子化服务功能正常。 11 12 13## 导入模块 14 15``` 16import { InnerFullScreenLaunchComponent, LauncherController } from '@kit.ArkUI' 17``` 18 19 20## 子组件 21 22无 23 24## 属性 25不支持[通用属性](ts-universal-attributes-size.md) 26 27## InnerFullScreenLaunchComponent 28 29InnerFullScreenLaunchComponent({ content: Callback\<void>, controller: LaunchController }) 30 31**装饰器类型:**\@Component 32 33**系统接口:** 此接口为系统接口。 34 35**系统能力:** SystemCapability.ArkUI.ArkUI.Full 36 37 38**参数:** 39 40 41| 名称 | 类型 | 必填 | 装饰器类型 | 说明 | 42| -------- | -------- | -------- | -------- | -------- | 43| content | Callback\<void> | 是 | \@BuilderParam | 组件显示内容。 | 44| controller | [LaunchController](#launchcontroller) | 是 | - | 拉起原子化服务控制器。 | 45 46## LaunchController 47 48**系统接口:** 此接口为系统接口。 49 50**系统能力:** SystemCapability.ArkUI.ArkUI.Full 51 52| 名称 | 类型 | 说明 | 53| ---- | ---------- | ------ | 54|launchAtomicService | [LaunchAtomicServiceCallback](#launchatomicservicecallback) | 拉起原子化服务。 | 55 56## LaunchAtomicServiceCallback 57 58**系统接口:** 此接口为系统接口。 59 60**系统能力:** SystemCapability.ArkUI.ArkUI.Full 61 62| 名称 | 类型 | 必填 | 说明 | 63| --------------- | ------ |------ |------ | 64|appId | string |是| 原子化服务的appId。 | 65| options | [AtomicServiceOptions](../../apis-ability-kit/js-apis-app-ability-atomicServiceOptions.md) | 否 | 拉起原子化服务参数。 | 66 67## 事件 68不支持[通用事件](ts-universal-events-click.md) 69 70## 示例 71 72```ts 73import { InnerFullScreenLaunchComponent, LaunchController } from '@kit.ArkUI'; 74 75@Entry 76@Component 77struct Index { 78 appId1: string = '5765880207853275505'; 79 appId2: string = '5765880207854372375'; 80 81 @Builder 82 ColumChild() { 83 Column() { 84 Text('InnerFullScreenLaunchComponent').fontSize(16).margin({top: 100}) 85 Button('start 日出日落') 86 .onClick(()=>{ 87 let appId2: string = '5765880207854372375'; 88 this.controller.launchAtomicService(appId2, {}) 89 }).height(30).width('50%').margin({top: 50}) 90 Button('start 充值') 91 .onClick(()=>{ 92 let appId2: string = '5765880207853275489'; 93 this.controller.launchAtomicService(appId2, {}) 94 }).height(30).width('50%').margin({top: 50}) 95 }.backgroundColor(Color.Pink).height('100%').width('100%') 96 } 97 controller: LaunchController = new LaunchController(); 98 99 build() { 100 Column() { 101 InnerFullScreenLaunchComponent({ 102 content: this.ColumChild, 103 controller: this.controller, 104 }) 105 } 106 .width('100%').height('100%') 107 } 108} 109 110``` 111