SCCameraKitLensMediaPickerProviderMediaApplicationDelegate
Objective-C
@protocol SCCameraKitLensMediaPickerProviderMediaApplicationDelegate <NSObject>
Swift
protocol LensMediaPickerProviderMediaApplicationDelegate : NSObjectProtocol
Delegate responsible for applying media to a lens. This should not be implemented directly.
Note
If you create a custom provider, you’ll need to call the methods here from your provider. See notes on provider.uiDelegate for more details.-
Notifies lenses that the media picker provider has loaded the full resolution version of an asset and is ready for it to be applied.
Declaration
Objective-C
- (void)mediaPickerProvider: (nonnull id<SCCameraKitLensMediaPickerProvider>)provider requestedApplicationOfOriginalAssets: (nonnull id<SCCameraKitLensMediaPickerAsset>)asset url:(nonnull NSURL *)url metadata: (SCCameraKitLensMediaPickerAssetMetadata) metadata;
Swift
func mediaPickerProvider(_ provider: LensMediaPickerProvider, requestedApplicationOfOriginalAssets asset: LensMediaPickerProviderAsset, url: URL, metadata: SCCameraKitLensMediaPickerAssetMetadata)
Parameters
provider
the provider sending the reequest
asset
the asset provided by the provider
url
the URL to a full-resolution image or video for lenses to apply
metadata
any metadata associated with the asset