-
Notifications
You must be signed in to change notification settings - Fork 1
levching edited this page Apr 15, 2020
·
3 revisions
This guide shows you how to implement Instagram sharing API using the Android Native API.
For this example, we will be taking the app screen screenshots using SA_ScreenUtil.TakeScreenshot method. However, you can use any image or images you like. The only limitation, this image has to be readable.
using SA.Android.Social;
...
SA_ScreenUtil.TakeScreenshot((screenshot) => {
var composer = new AN_InstagramSharing();
composer.AddImage(screenshot);
composer.AddImage(screenshot);
composer.Share(() => {
Debug.Log("Sharing flow is finished, User has retured to the app");
});
});
Please note, that you can use native sharing only if the application you want to share with is installed on a user device. Can check this using the example below:
bool IsAppInsatlled = AN_InstagramSharing.IsAppInsatlled;
Reliable and high-quality Unity Development service. Let's Talk!
Website | AssetStore | LinkedIn | Youtube | Scripting Reference
- Build Info
- Dark Mode
- Package Info
- Runtime Permissions
- Run External App
- Immersive Mode
- PackageManager
- Popups & Preloaders
- Rate Us Dialog
- Activity
- Intent
- Settings Page
- Media Player
- Date Picker Dialog
- Time Picker Dialog
- Locale
- Wheel Picker Dialog
- Developer Console Setup
- Connecting to The Service
- Purchase Flow
- Transactions Validation
- Subscriptions
- Licensing
- Getting Started
- Games Sing-in
- Server-side API Access
- Leaderboards
- Achievements
- Saved Games
- Image Manager
- Settings Intent