Genuin Android SDK comprises features such as brand feed, communities, and groups.
Platform | Minimum SDK Version | Language | Supported Orientations | Supported Destinations |
---|---|---|---|---|
Android | 24 | Java/Kotlin | Portrait | Mobile |
AndroidManifest.xml
file as per feature requirements:
activity_custom.xml
file
CustomActivity.kt
file
adjustPan
for better performance res/navigation/mobile_navigation.xml
loader_mix.json
in the res/raw
folder. Make sure you use the same name as provided.
<application>
tag, set android:allowBackup="false"
setScrollDirection(CarouselScrollDirection.VERTICAL)
and other configurations will be same as above.
(setActivity(activityContext))
in which you want the embed. To auto login in the SDK, you shall pass “YOUR_SSO_TOKEN”(setSSOToken("YOUR_SSO_TOKEN"))
in order to implement Embed with SSO in your app. EmbedParams
based on your need you can pass the below values.
isDirectDeepLinkEnabled
parameter, you must have white labelled your domain first and also integrated the Handling deep link part in your main app in which you want to redirect this video to. signup/login
.
b. mobile - This is an optional string parameter. Pass this parameter for signup/login
.
c. email - This is an optional string parameter. Pass this parameter for signup/login
.
d. nickname - This is an optional string parameter. If nickname is available in genuin ecosystem it will be used, else genuin will generate of its own.
e. profile_image: This is an optional string parameter. Pass the profile_image
parameter if you want to show the profile image in the SDK.
Add contextual parameters (Optional)
a. page_context - This is an optional string parameter. Pass this parameter for ‘context
’, so that feed could load based on that context.
b. lat - This is an optional float parameter. Pass this parameter in geo
so that the feed could load based on the latitude and context.
c. long - This is an optional float parameter. Pass this parameter in geo
so that the feed could load based on the longitude and context.
Add design configurations (Optional)
a. interTileSpacing - spacing between the carousel’s view items. It’s default value is 8dp
b. carouselInset - edge insets for carousel’s view. It’s default value is top: 8dp, left: 16dp, bottom: 0dp, right: 16dp
c. scrollDirection - direction of carousel scroll. It’s default value is CarouselScrollDirection.HORIZONTAL
d. aspectRatio - define aspect ratio of carousel’s view items. It’s default value is CarouselTileAspectRatio.RATIO_9_16
e. tileCornerRadius - cornerRadius for the carousel’s view items. It’s default value is 8dp
activity_full_embed.xml
file
FullEmbedActivity.kt
file
FullScreenEmbed
.
isDirectDeepLinkEnabled
parameter, you must have white labelled your domain first and also integrated the Handling deep link part in your main app in which you want to redirect this video to. signup/login
.
b. mobile - This is an optional string parameter. Pass this parameter for signup/login
.
c. email - This is an optional string parameter. Pass this parameter for signup/login
.
d. nickname - This is an optional string parameter. If nickname is available in genuin ecosystem it will be used, else genuin will generate of its own.
e. profile_image: This is an optional string parameter. Pass the profile_image
parameter if you want to show the profile image in the SDK.
Add contextual parameters (Optional)
a. page_context - This is an optional string parameter. Pass this parameter for ‘context
’, so that feed could load based on that context.
b. lat - This is an optional float parameter. Pass this parameter in geo
so that the feed could load based on the latitude and context.
c. long - This is an optional float parameter. Pass this parameter in geo
so that the feed could load based on the longitude and context.
activity_standard_wall_embed.xml
file
StandardWallEmbedActivity.kt
file
StandardWallEmbed
.
isDirectDeepLinkEnabled
parameter, you must have white labelled your domain first and also integrated the Handling deep link part in your main app in which you want to redirect this video to. signup/login
.
b. mobile - This is an optional string parameter. Pass this parameter for signup/login
.
c. email - This is an optional string parameter. Pass this parameter for signup/login
.
d. nickname - This is an optional string parameter. If nickname is available in genuin ecosystem it will be used, else genuin will generate of its own.
e. profile_image: This is an optional string parameter. Pass the profile_image
parameter if you want to show the profile image in the SDK.
Add contextual parameters (Optional)
a. page_context - This is an optional string parameter. Pass this parameter for ‘context
’, so that feed could load based on that context.
b. lat - This is an optional float parameter. Pass this parameter in geo
so that the feed could load based on the latitude and context.
c. long - This is an optional float parameter. Pass this parameter in geo
so that the feed could load based on the longitude and context.
signup/login
’.signup/login
.signup/login
.profile_image
parameter if you want to show the profile image in the SDK.assetlinks.json
file should look like belowassetlinks.json
file on the white labeled domain at https://YOUR_WHITE-LABELLED_DOMAIN/.well-known/assetlinks.json
google-services.json
file and add it into your app.
GenuinSDK.willHandleForegroundNotification(data: Map<String, String>)
function will check whether GenuinSDK will handle the given notification or not when app is in foreground. GenuinSDK.willHandleNotification(intent: Intent)
function will check whether GenuinSDK will handle the given notification or not.