The SDK has an option to use the predefined feed as a separate component that can be integrated into existing applications and can be launched within any android activity screen via any user-defined CTA.
implementation 'com.gluedin.lowcode:gluedin:2.0.0'
implementation 'com.gluedin.lowcode.feed:feed:2.0.0'
fun onBackPressCall()
fun likeAction(currentFeedItem: VideoInfo, like: Boolean)
fun navigateToUserProfileScreen(userId: String)
fun shareAction(currentFeedItem: VideoInfo?)
fun scrollToNextVideo(currentFeedItem: VideoInfo)
fun scrolledToPreviousVideo(currentFeedItem: VideoInfo)
fun videoStarted(currentFeedItem: VideoInfo?)
fun videoPlayPause(isPlaying: Boolean, currentFeedItem: VideoInfo?)
fun onCommentSubmitted(currentFeedItem: VideoInfo)
fun videoWatched(currentFeedItem: VideoInfo?)
fun mediaReady(currentFeedItem: VideoInfo?)
fun onCommentEdit(currentFeedItem: VideoInfo)
fun onApiError(apiName: GluedInAPIName?, throwable: Throwable? = null)
fun onCommentBottomSheetDismiss()
fun onPlayerErrorReceived(error: PlayerException, currentFeedItem: VideoInfo?)
fun onVideoEnd(currentFeedItem: VideoInfo?)
fun onVideoRestarted(currentFeedItem: VideoInfo?)
fun navigateToHashtagDetailPage(hashtagTitle: String, currentFeedItem: VideoInfo?)
fun onCommentClick(currentFeedItem: VideoInfo?)
fun onCommentDelete(currentFeedItem: VideoInfo)
fun onTaggedUserProfile(userId: String)
fun navigateToSignUp(currentFeedItem: VideoInfo?)
fun onShoppableItemClick(product: Product, position: Int)
fun onTopProfileClick(profileInfo: Profile)
fun onUserFollow(currentFeedItem: VideoInfo?)
fun onBusinessAccountDelete()
fun onUserDeactivate()
fun onBackPressCall()
fun likeAction(currentFeedItem: VideoInfo, like: Boolean)
fun navigateToUserProfileScreen(userId: String)
fun shareAction(currentFeedItem: VideoInfo?)
fun scrollToNextVideo(currentFeedItem: VideoInfo)
fun scrolledToPreviousVideo(currentFeedItem: VideoInfo)
fun videoStarted(currentFeedItem: VideoInfo?)
fun videoPlayPause(isPlaying: Boolean, currentFeedItem: VideoInfo?)
fun onSingleTap(currentFeedItem: VideoInfo?, isPlay: Boolean)
fun onDoubleTap(currentFeedItem: VideoInfo?)
fun onCommentSubmitted(currentFeedItem: VideoInfo)
fun videoWatched(currentFeedItem: VideoInfo?)
fun mediaReady(currentFeedItem: VideoInfo?)
fun onCommentEdit(currentFeedItem: VideoInfo)
fun onApiError(apiName: GluedInAPIName?, throwable: Throwable? = null)
fun onCommentBottomSheetDismiss()
fun onPlayerErrorReceived(error: PlayerException, currentFeedItem: VideoInfo?)
fun onVideoEnd(currentFeedItem: VideoInfo?)
fun onVideoRestarted(currentFeedItem: VideoInfo?)
fun navigateToHashtagDetailPage(hashtagTitle: String, currentFeedItem: VideoInfo?)
fun onCommentClick(currentFeedItem: VideoInfo?)
fun onCommentDelete(currentFeedItem: VideoInfo)
fun onTaggedUserProfile(userId: String)
fun navigateToSignUp(currentFeedItem: VideoInfo?)
fun onShoppableItemClick(product: Product, position: Int)
fun onUserFollow(currentFeedItem: VideoInfo?)
fun onBusinessAccountDelete()
fun onUserDeactivate()
class YourOwnSquareFeedFragment : FeedFragment() {
override fun navigateToUserProfileScreen(userId: String) = Unit
}
class YourOwnVerticalFeedFragment : VerticalFeedFragment() {
override fun navigateToUserProfileScreen(userId: String) = Unit
}
// Baked Feed method to launch Feed module
// Option to launch baked feed by clicking on feed button
// Controller can be open from any button or bottom bar or load screen or any user interction option
@IBAction func callToLaunchedBackedFeedMethod(_ sender: Any) {
self.navigationController?.pushViewController(
GluedInFeed.shared.getFeedViewController(
delegate: self,
isBackEnable: true) ?? UIViewController(),
animated: true)
}
Users can enable/disable the coachmark on Feed Screen by using enableFeedCoachMark() method. This method must be called in the onCreate() method of the Fragment. Refer to the snippet below:
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableFeedCoachMark(true)
}