share image of compose component

Viewed 40

i want to share image of my component , but cannot accses view of it, to share. how i can accses view of my component or share image of it. my component is a card

@Composable
fun CardItem(modifier: Modifier=Modifier,card: Card, onClick:()->Unit) {
Box(
   modifier
        .background(
            if (card.card_number == AllCardsActivity.NOCARD) MaterialTheme.colorScheme.secondary
            else MaterialTheme.colorScheme.primary,
            RoundedCornerShape(20.dp)
        )
        .width(CardWidth)
) {
    Column(Modifier.padding(25.dp)) {....
1 Answers
Related