1# InnerFullScreenLaunchComponent (System API) 2 3 4**InnerFullScreenLaunchComponent** is a component that allows the invoker to choose the timing for launching an atomic service. If the invoked application (the one being launched) grants the invoker the authorization to run the atomic service in an embedded manner, the invoker can operate the atomic service in full-screen embedded mode. If authorization is not provided, the invoker will launch the atomic service in a pop-up manner. 5 6> **NOTE** 7> 8> This component is supported since API version 12. Updates will be marked with a superscript to indicate their earliest API version. 9> 10> To implement an embeddable atomic service within this component, it must inherit from [EmbeddableUIAbility](../../apis-ability-kit/js-apis-app-ability-embeddableUIAbility.md). If it does not inherit from **EmbeddableUIAbility**, the system cannot guarantee that the atomic service will function properly. 11 12 13## Modules to Import 14 15```ts 16import { InnerFullScreenLaunchComponent, LauncherController } from '@kit.ArkUI'; 17``` 18 19 20## Child Components 21 22Not supported 23 24## Attributes 25The [universal attributes](ts-component-general-attributes.md) are not supported. 26 27## InnerFullScreenLaunchComponent 28 29InnerFullScreenLaunchComponent({ content: Callback\<void>, controller: LaunchController }) 30 31**Decorator**: \@Component 32 33**System API**: This is a system API. 34 35**System capability**: SystemCapability.ArkUI.ArkUI.Full 36 37 38**Parameters** 39 40 41| Name| Type| Mandatory| Decorator Type| Description| 42| -------- | -------- | -------- | -------- | -------- | 43| content | Callback\<void> | Yes| \@BuilderParam | Content displayed in the component.| 44| controller | [LaunchController](#launchcontroller) | Yes| - | Controller for launching the atomic service.| 45| onReceive<sup>20+<sup> | [Callback](../../apis-basic-services-kit/js-apis-base.md#callback)\<Record<string, Object>> | No| - | Callback triggered when the embedded atomic service is launched through [Window](../../../windowmanager/application-window-stage.md) API calls.| 46 47## LaunchController 48 49**System API**: This is a system API. 50 51**System capability**: SystemCapability.ArkUI.ArkUI.Full 52 53| Name| Type| Mandatory| Description| 54| ---- | ---------- | ------ |------ | 55|launchAtomicService | [LaunchAtomicServiceCallback](#launchatomicservicecallback) | Yes| Launches an atomic service.| 56 57## LaunchAtomicServiceCallback 58 59**System API**: This is a system API. 60 61**System capability**: SystemCapability.ArkUI.ArkUI.Full 62 63| Name| Type| Mandatory| Description| 64| --------------- | ------ |------ |------ | 65|appId | string |Yes| Application ID for the atomic service.| 66| options | [AtomicServiceOptions](../../apis-ability-kit/js-apis-app-ability-atomicServiceOptions.md) | No| Parameters for launching the atomic service.| 67 68## Events 69The [universal events](ts-component-general-events.md) are not supported. 70 71## Example 72 73```ts 74import { InnerFullScreenLaunchComponent, LaunchController } from '@kit.ArkUI'; 75 76@Entry 77@Component 78struct Index { 79 80 @Builder 81 ColumChild() { 82 Column() { 83 Text('InnerFullScreenLaunchComponent').fontSize(16).margin({top: 100}) 84 Button('Start Sunrise/Sunset') 85 .onClick(()=>{ 86 let appId1: string = '5765880207854372375'; 87 this.controller.launchAtomicService(appId1, {}); 88 }).height(30).width('50%').margin({top: 50}) 89 Button('Start Recharge') 90 .onClick(()=>{ 91 let appId2: string = '5765880207853275489'; 92 this.controller.launchAtomicService(appId2, {}); 93 }).height(30).width('50%').margin({top: 50}) 94 }.backgroundColor(Color.Pink).height('100%').width('100%') 95 } 96 controller: LaunchController = new LaunchController(); 97 98 build() { 99 Column() { 100 InnerFullScreenLaunchComponent({ 101 content: this.ColumChild, 102 controller: this.controller, 103 onReceive: (data) => { 104 console.info("onReceive, data: " + data['ohos.atomicService.window']); 105 } 106 }) 107 } 108 .width('100%').height('100%') 109 } 110} 111 112``` 113