Skip to content

Commit

Permalink
Optional parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Nov 8, 2023
1 parent a69da8c commit b390088
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ package com.revenuecat.purchases.hybridcommon
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity

fun presentPaywallFromFragment(fragment: FragmentActivity, requiredEntitlementIdentifier: String?) {
@JvmOverloads
fun presentPaywallFromFragment(
fragment: FragmentActivity,
requiredEntitlementIdentifier: String? = null
) {
fragment
.supportFragmentManager
.beginTransaction()
Expand Down

0 comments on commit b390088

Please sign in to comment.