-
public class MediaUpgradeOfferInternal extends MediaUpgradeOffer
-
-
Method Summary
Modifier and Type Method Description voidaccept(Consumer<GliaException> callback)Accepts media upgrade offer.Audio and video communication is started immediately after the permissions are given. voiddecline(Consumer<GliaException> callback)Declines the media upgrade offer. -
-
Method Detail
-
accept
void accept(Consumer<GliaException> callback)
Accepts media upgrade offer.Audio and video communication is started immediately after the permissions are given.
This method requires a unique request codes that can be used to trigger a microphone and camera permissionprompt via Activity#requestPermissions(String[], int).See setRequestCode
Make sure to call onRequestPermissionsResult fromthe provided activity'sActivity#onRequestPermissionsResult(int, String[], int[])to allow Glia SDK to consume camera and microphone permission prompt result.
- Parameters:
callback- Called with{@code null}if done successfully or with GliaException if failed.
-
decline
void decline(Consumer<GliaException> callback)
Declines the media upgrade offer.
- Parameters:
callback- Called with{@code null}if done successfully or with GliaException if failed.
-
-
-
-