@Scope
@Retention(RetentionPolicy.CLASS)
public @interface ApplicationScope {
}
implementation 'org.kodein.di:kodein-di-generic-jvm:6.3.3'
implementation 'org.kodein.di:kodein-di-framework-android-x:6.3.3'
to create a dependency it is required to provide the builder method for that so that Kodein can create it. in this case lets say we want a Repository with a application context.
class Repository(var application: Application) {
This is a library in android jetpack to make the loading data to recyclerview easier and more efficient. It provies with different components like data source, list adapter and boundary callback to use it as per you use case and make you list loading easier.
When we are using local Room database we can directly get datasource from the room DAO. but there are case when we need to create our own datasource. like loading the data directly from server. There are 3 types of datasource we can extend and use for loading data from srever -
- PageKeyed
- ItemKeyed
data structure are user to organize our data in a specific way to make the operation on the data will be easier and faster. The steps taken on the data structure to get the results out of the raw data is called algorithm.
Data structure is of 2 types-
- Primitive - The data structure which is provided by the language we ra working on is called primitive dta structure. ex - Integer, Double, Float, Boolean in case of Java.
- Non-primitive - the data structure which is created with the help of the primitive DS is non-primitive DS.
This can again be categorized into 2 types.
- Physical - DS which is physically present in the memory. ex - Array, linked list.
- Virtual - DS which is user defined and not directly present in memory. this takes help of physical and primitive DS to work. ex - stack queue, tree, graph.
Used to match the string in a sequence of chars. Regular expression is case sensitive.
- this is the simplest of all searches. to search ABC just do ABC.
- there are some reserved keywords in Regular Expression which has special meaning. like . . so to search for a . we can not just write it like that. we need to escape it. like \. .
- other special chars in regular expression are - .[{()^$|?*+
Pattern | Description |
---|
Flutter is an open-source UI toolkit from Google for crafting beautiful, natively compiled applications for desktop, web, and mobile from a single codebase. Flutter apps are built using the Dart programming language.
Widgets are basically the UI components in Flutter. There are 2 types of widgets in flutter. Stateless and StateFul.
This is a object orieanted programming language which is used to write flutter code. Dart allows Flutter to avoid the need for a separate declarative layout language like JSX or XML. It uses AOT compilation to make the code run faster on host device.
Object-Oriented Programming is a methodology of designing a program using classes, objects, inheritance, polymorphism, abstraction, and encapsulation.
- Private - can be accessed only in class
- Public - can be accessed outside of class
- Protected - can be accessed in derived class
Single, multilevel, hierarchial