Skip to main content
Platform
Camera Kit Android

Customize Attribution to Snap

Overview​

We highly encourage each Camera Kit integration to include Snap branding elements consistent with the Design Guidelines. This page provides options to implement these within your app.

Android Integration​

Here are the options for including Snap branding elements in your application:

Option 1: CameraActivity​

If you are using CameraActivity from the com.snap.camerakit:support-camera-activity package to integrate the Camera Kit, then the “Powered by Snapchat” attribution will be displayed in the bottom right corner once a user has agreed to Snap Terms of Service. Neither appearance nor position of the attribution view can be changed in this case.

Option 2: CameraLayout​

If you are using CameraLayout from the com.snap.camerakit:support-camera-layout package to integrate the Camera Kit, then the “Powered by Snapchat” attribution will be displayed in the bottom right corner once a user has agreed to Snap Terms of Service. To change the position of the attribution view, one can access it using CameraLayout#snapAttributionView to update layout parameters.

Option 3: Custom Layout​

If you are using custom layout for the Camera Kit integration, then to add “Powered by Snapchat” attribution view you follow these steps:

Add com.snap.camerakit:support-snap-attribution package to your project. eg​
implementation "com.snap.camerakit:support-snap-attribution:$cameraKitVersion"

Include @layout/camera_kit_snap_attribution into your layout and customize position of it as per your needs. eg. for the ConstraintLayout​

<include
android:id="@+id/snap_attribution"
layout="@layout/camera_kit_snap_attribution"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/camera_kit_snap_attribution_margin_end"
android:layout_marginBottom="@dimen/camera_kit_snap_attribution_margin_bottom"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
/>
Was this page helpful?
Yes
No