How to customize the MessengerLauncher layout #81
elliot-choic
announced in
Launcher
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Versions
Summary
You can customize the position, margin, and display mode of the
MessengerLauncher
Guide & Snippet
iOS
Steps to Customize the Launcher Layout
You can customize the MessengerLauncher layout in iOS using
SBALauncherOptions
.Basic Configuration
Configuration Options
position
LauncherPosition
.leadingTop
,.trailingTop
,.leadingBottom
,.trailingBottom
(default)margin
LauncherAreaMargin
.default
(16pt all sides)useSafeArea
Bool
true
(default),false
entryPoint
SBAEntryPoint
.conversation
(default),.conversationList
displayStyle
DisplayStyle
.overlay()
(default),.fullscreen()
Display Style Options
Overlay Style
spacing
CGFloat
12
overlayLauncher
Bool
false
true
, launcher stays visible over conversationFullscreen Style
presentationStyle
UIModalPresentationStyle
.fullScreen
.fullScreen
,.pageSheet
,.formSheet
,.overFullScreen
parentController
UIViewController?
nil
Advanced Examples
Android
Steps to Customize the Launcher Layout
1. Set Up
LauncherLayoutParams
You can define the following parameters:
launchMode
EXPANDED
(full screen) orANCHORED
(popup near launcher)margin
location
TOP_START
,TOP_END
,BOTTOM_START
,BOTTOM_END
2. Example (Kotlin)
JS
Header
// code block
Reference
No response
Screenshots
No response
Beta Was this translation helpful? Give feedback.
All reactions