This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. In navigation toolbar, A new ICON ![Sequence Diagram ...](imges/sequence.svg){:height="24px" width="24px"} added. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//approach 1 | |
fun main(){ | |
val a = Unit | |
val b = null | |
if(listOf(a,b).all{ it != null }){ | |
println("Not null") | |
}else{ | |
print("Please check inputs") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android" | |
android:interpolator="@android:anim/linear_interpolator" | |
android:fillAfter="true" android:fillBefore="true"> | |
<scale | |
android:duration="100" | |
android:fromXScale="1" | |
android:fromYScale="1" | |
android:pivotX="50%" | |
android:pivotY="50%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kotlinx.coroutines.* | |
fun main() { | |
BaseAPIImpl().endpoint1() | |
ModuleAPIImpl().endpoint1() | |
ModuleAPIImpl().endpoint2() | |
(ModuleAPIImpl() as ModuleAPI).endpoint1() | |
(ModuleAPIImpl() as ModuleAPI).endpoint2() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----FRUIT BASKET-------- | |
-----MANGO BASKET-------- PUT ANY MEMBER TO FRUIT BASKET AS MANGO - OK, GET ANY MEMBER FROM FRUIT AS MANGO - NOT OK | |
-----MANGO BASKET-------- PUT ANY MEMBER TO KESHAR-MANGO BASKET AS MANGO - NOT OK, GET ANY MEMBER FROM KESHAR-MANGO AS MANGO - OK | |
-----KESHAR-MANGO BASKET-------- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface MFlow<T>{ | |
fun collect(collector: MCollector<T>) | |
} | |
interface MCollector<T>{ | |
fun onEmit(item :T) | |
} | |
// fun mFlowOf(value: String):MFlow<String>{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BaseActivity extends FragmentActivity { | |
@Override | |
protected void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
IronSource.init(this, AppConfig.IRONSOURCE_APP_KEY); | |
... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Just pass context and list of file | |
// It will create a PDF file in cache dir | |
// Add your own logic to share/open PDF | |
// Works fast and reliable method | |
// > - No library needed (Uses android internal android.graphics.pdf.PdfDocument classes) | |
// > - Works in background, Doesn''t freeze UI | |
// > - No need to declare and grant storage permission :) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static ArrayList<ArrayList<String>> getKeyEvents() { | |
return new ArrayList<ArrayList<String>>() { | |
{ | |
add(new ArrayList<String>() {{ | |
add("UNKNOWN"); | |
add("0"); | |
}}); | |
add(new ArrayList<String>() {{ | |
add("SOFT_LEFT"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- <string name="welcome_messages">Hello, %1$s! You have %2$d new messages.</string>--> | |
<!-- String text = res.getString(R.string.welcome_messages, username, mailCount);--> | |
<!-- <plurals name="welcome_messages">--> | |
<!-- <item quantity="one">Hello, %1$s! You have a new message.</item>--> | |
<!-- <item quantity="other">Hello, %1$s! You have %2$d new messages.</item>--> | |
<!-- </plurals>--> | |
<!-- String text = getResources().getQuantityString(R.plurals.welcome_messages, mailCount, username, mailCount);--> | |
<!-- %[parameter_index$][format_type]--> |