Git Product home page Git Product logo

jewelshkjony / recyclernativeadview Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 58 KB

The Recycler Native Ad View Extension for MIT App Inventor 2 is a powerful tool that enhances the app-building experience by seamlessly integrating native ads into your application.

Home Page: https://community.kodular.io/t/paid-recycler-native-ad-view-extension-monetize-boost-your-earning-with-native-ads/229294

admob-native-ads-recyclerview kodular monetization native-ad niotron recycler-view kodular-extension niotron-extension

recyclernativeadview's Introduction

[PAID] Recycler Native Ad View Extension : Monetize & boost your earning with native ads into recycler view

The Recycler Native Ad View Extension for MIT App Inventor 2 is a powerful tool that enhances the app-building experience by seamlessly integrating native ads into your application. This extension allows you to display native ads within a recycler view, providing a user-friendly and unobtrusive way to monetize your app. With its easy-to-use interface and extensive customization options, this extension is perfect for developers looking to generate revenue through native advertising.


image

❇️ Initialize

You need to initialize the recycler view first.

image

  • layout - Set any view layout here.
  • layoutManager - Set layout manager using extension properties.
  • snapHelper - Set snap helper from extension properties.
  • data - Set item list.
  • adAfterItem - Set number to show ad after items.
  • adSize - Set ad size using extension properties or functions.
  • adUnitId - Set ad unit id for banner ad.
  • testMode - Set true for enable test ads.

❇️ Create View

Here you need to create your item view for binding it’s data on bind view event.

image

  • rootView - It’s return the root view.

❇️ Bind View

Here you need to bind data to created view.

image

  • rootView - It’s return the root view.
  • itemPosition - It’s return the position for item view.
  • dataItem - It’s return the item from given data list.
  • adapterPosition - It’s return the position of adapter.

❇️ Bind Ad View

Here you need to bind native ad to created view.

image

  • nativeAdView - It’s return the native ad view.
  • nativeAd - It’s return the loaded native ad for this position.
  • adapterPosition - It’s return the position of adapter.

❇️ View Attached To Window

It’s triggered when view attached to window.

image

  • rootView - It’s return the root view.
  • itemPosition - It’s return the position for item view.
  • adapterPosition - It’s return the position of adapter.

❇️ View Detached From Window

It’s triggered when view detached from window.

image

  • rootView - It’s return the root view.
  • adapterPosition - It’s return the position of adapter.

❇️ Scroll State Changed

Event for scroll state change.

image

  • scrollState - It’s return the scrolling state.

❇️ Scrolled

Event for scrolled listener.

image

  • dx - It’s return the dx position.
  • dy - It’s return the dy position of screen.

❇️ Left Swiped

It’s triggered when item swiped right to left.

image

  • itemPosition - It’s return the position for item view.
  • adapterPosition - It’s return the position of adapter.

❇️ Right Swiped

It’s triggered when item swiped left to right.

image

  • itemPosition - It’s return the position for item view.
  • adapterPosition - It’s return the position of adapter.

❇️ Draaged

It’s triggered when item moved between them.

image

  • fromAdapterPosition - It’s return the from adapter position for item view.
  • toAdapterPosition - It’s return the to adapter position for item view.

❇️ Over Scrolled

It’s triggered when user over scrolling the list view.

image

  • state - It’s returning the state of over scrolled.
  • offset - It’s returning the over scrolled offset.

❇️ Failed To Inflate Xml

It's triggered when extension failed to inflate xml layout for native ad view. Read the message to understand the error reason.

image

  • message - It's return the error message.

❇️ Ad Loaded

It’s triggered when ad loaded.

image

  • hasVideo - It's return true if the ad has video content.

❇️ Ad Failed To Load

It’s triggered when ad failed to load.

image

  • error Code - It's return the error code.
  • error Message - It's return error message as string.
  • response - It's return the error code & message as json.

❇️ Ad Clicked

It’s triggered when user click on any banner ad.

image


❇️ Ad Impression

It’s triggered when the ad count impression.

image


❇️ Ad Swipe Gesture Clicked

It’s triggered for ad swipe gesture clicked.

image


❇️ Ad Opened

It’s triggered when ad is opened.

image


❇️ Ad Closed

It's triggered when ad is closed.

image


❇️ Video Start

It's triggered when video is started.

image

  • duration - It’s return the duration of video in second.

❇️ Video Play

It's triggered when video played.

image


❇️ Video Pause

It's triggered when video is paused.

image


❇️ Video End

It's triggered when video is ended.

image

  • duration - It’s return the duration of video in second.

❇️ VideoMute

It's triggered when video muted or unmuted.

image

  • isMuted - It’s return true is video is muted.

❇️ Scroll To Position

Use this method to scroll adapter to the item position.

image

  • itemPosition - Set item position.

❇️ Smooth Scroll To Position

Use this method to smoothly scroll to item position.

image

  • itemPosition - Set item position.

❇️ Stop Scroll

Use this method to manually stop scrolling.

image


❇️ Ad Gap Decorator

Use this method to add gap between items.

image

  • gap - Set gap as integer number.

❇️ Get Data

Use this method to get given data list.

image


❇️ Update Data

Use this method to update data with new or modified list.

image

  • data - Set data as list.

❇️ Update Data Smoothly

Use this method to update data smoothly.

image

  • data - Set data as list.

❇️ Notify Data Set Changed

You can use this function to manually notify the adapter to re-create all views after any changes to views.

image


❇️ Notify Item Changed

Use this function to notify the adapter for re-create view for given position.

image

  • adapterPosition - Set adapter position.

❇️ Notify Item Inserted

Use this function to notify adapter to add item to given position.

image

  • adapterPosition - Set adapter position.

❇️ Notify Item Removed

Use this function to notify adapter for remove item from given position.

image

  • adapterPosition - Set adapter position.

❇️ Notify Item Moved

Use this function to notify adapter for item moving by given positions.

image

  • fromAdapterPosition - Set item position from where to move item.
  • toAdapterPosition - Set item position to where to move item.

❇️ Notify Item Range Changed

Use this function to notify adapter for multiple items changed.

image

  • adapterPositionStart - Set start position.
  • itemCount - Set item count.

❇️ Notify Item Range Inserted

Use this function to notify adapter for multiple items insertion.

image

  • adapterPositionStart - Set start position.
  • itemCount - Set item count.

❇️ Notify Item Range Removed

Use this function to notify adapter for multiple items removed.

image

  • adapterPositionStart - Set start position.
  • itemCount - Set item count.

❇️ Item Position

Get item position by adapter position.

image

  • adapterPosition - Set adapter position.

❇️ Adapter Position

Get adapter position by item position.

image

  • itemPosition - Set item position.

❇️ Get Root View

Use this function to get root view by child view.

image

  • component - Set view component to get root view.

❇️ Get Adapter Position

Use this function to get adapter position by root view.

image

  • rootView - Set root view.

❇️ Create Component

Use this function to create dynamic views.

image

  • parent - Set parent view where to create new view.
  • name - Set the name of component to create view.
  • tag - Set tag for view.
  • properties - Set properties for view.

❇️ Create Template

Use this function to create dynamic views using JSON template.

image

  • in - Set view component where to create new views.
  • template - Set template to create views.
  • parameters - Set parameters for dynamic views.

❇️ Set Properties

Use this function to set properties for any dynamic view.

033cd

  • component - Set view to apply properties.
  • properties - Set properties.

❇️ Set Property

Set single property for a component.

b8459

  • component - Set view to apply properties.
  • name - Set property name.
  • value - Set property value.

❇️ Set Unique Id

Use this function to set unique id to view. It’s required to use click listener.

357082a

  • component - Set view component to apply unique id.
  • id - Set id for view component.

❇️ Get Unique Id

Use this function to get unique id for any view.

030db88c

  • component - Set view component to get unique id.

❇️ Unique Ids

It's return all used unique ids as list.

10b13


❇️ Get Component

Use this function to get child view from parent view by it’s tag.

a6d598c

  • parent - Set the child view component.
  • tag - Set tag to find parent view.

❇️ Get Component By Id

Use this function to get view component by it’s unique id. For using this method you should set unique id to this view.

5f448ee

  • uniqueId - Set unique id to find the view component.

❇️ Is Dynamic Component

It’s returning true if the view is created dynamically.

3f295

  • component - Set view component.

❇️ Get Component Name

It’s returning the name of component. You can use this function to get the actual name of in-built components.

635d5

  • component - Set any in-build component to get it’s name.

❇️ Animate View On Click

Use this function to animate root view when clicked.

143e6de

  • rootView - Set view to animate.
  • duration - Set duration in milliseconds.

❇️ Linear Layout Manager

Use this function to create linear layout manager for initialize recycler view.

41e954

  • orientation - Set orientation for recycler view from extension properties.
  • reverseLayout - Set boolean value here. Set true to show list in reverse order.

❇️ Grid Layout Manager

Use this function to create grid layout manager for initialize recycler view.

08ec7ae

  • spanCount - Set span count as integer number. Span count is for create items per row.
  • orientation - Set orientation for recycler view from extension properties.
  • reverseLayout - Set boolean value here. Set true to show list in reverse order.

❇️ Staggered Grid Layout Manager

Use this function to create staggered grid layout manager for initialize recycler view.

4ba33ba

  • spanCount - Set span count as integer number. Span count is for create items per row.
  • orientation - Set orientation for recycler view from extension properties.

❇️ Populate Native Ad Views

You've to populate add created ad views for bind native ad to the native ad view. Use this functions to populate views and watch tutorial video for better understanding.

b9f3318

  • nativeAdView - Set native ad view object from BindAdView event.
  • nativeAd - Set native ad object from the BindAdView event.
  • tag - Set view tag which one you've used for this view into xml code.
  • backgroundColor - Set background color for the CallToActionView (Button).

❇️ Finish Populating Views

You've to call this at the end of populating views to notify that populating views is finished and native ad view is read to display ad.

fc00c84be

  • nativeAdView - Set native ad view object from BindAdView event.
  • nativeAd - Set native ad object from the BindAdView event.

❇️ Get Ads Count

It's return total loaded ads count.

99f6838f


❇️ Get Adapter Position

Using this properties you can get adapter position.

1fd1b5


❇️ Orientation

Set recycler view orientation using this properties.

0d9c096


❇️ Snap Helper

To create snap helper use this properties.

22cdf76


❇️ Scroll State

To handle scroll state use this properties.

27b789


❇️ Xml Layout

Set xml file from asset to inflate native ad view or set xml code as string using block section.

67ab24e97

55540678


❇️ Animate Ad View

Set true to animate the native ad view on scrolling.

b6d7f3f2a7

7812adfb


❇️ Left Swipable

Set true to enable left swipe on items.

a9178

43e2f


❇️ Swipe Left Background Color

Change background color of left swiped view.

f8cd

fb5439c


❇️ Swipe Left Label Color

Change the label color of swiped left label text.

11058

6a6de57


❇️ Swipe Left Label

Change swipe left label text. Make it empty to disable swipe left label text.

a152e

d95bc0080


❇️ Swipe Left Label Size

Change swipe left label text size.

b2757e

59d0d2


❇️ Swipe Left Icon

Set image on swipe left view. Make it empty to disable swipe left icon.

f666a062

24eec2b


❇️ Right Swipable

Set true to enable right swipe.

afa81d5862

d0870b3bc


❇️ Swipe Right Background Color

Change background color of right swiped view.

94f94472

4c55610094d


❇️ Swipe Right Label Color

Change the label color of swiped view.

eca92

c75603f


❇️ Swipe Right Label

Change the text for swipe right text. Make it empty to disable swipe right label.

38d7bdb9

752b78730


❇️ Swipe Right Label Size

Change the text size of swipe right label.

dc521f47

4e3fd861


❇️ Swipe Right Icon

Set the swipe right icon, set None or make it empty to disable swipe right icon.

d740a

909


❇️ Draggable

Set true to enable dragging items between them.

637f

2ba21ae


❇️ Fixed Size

Set true to improve performance.

4e8418


❇️ Nested Scrolling

Set false to improve scrolling.


❇️ Over Scroll

Set true to enable over scroll effect.


❇️ Animation Duration

Set item animation duration in milliseconds.


❇️ AlwaysAnimate

Set false to animate only on first scroll.


❇️ Item Animator

Chage item animation from available animations.


❇️ Available Animations

Total 51+ animations are available. More animations will be added soon.


Demo blocks

📝 item.json - Download demo template json.

📝 small_template.xml - Download demo xml layout.


blocks


Demo output

RecyclerNativeAdDemo


More extensions

See more extensions

🧾 Extension Specifications

com.jewel.admob.recyclernativeadview.aix (126 KB)
⚙️ SDK: 22.1.0
🏋️‍♂️ Size: 126 KB
🪙 Price: $25 (One time purchase only)
🪙 Price: $30 (Lifetime support + minor updates)
🪙 Price: $35 (Lifetime support + major + minor updates)
🌏 Released On: 28 June 2023 (GMT+06:00)
🌏 Updated On: 28 June 2023 (GMT+06:00)\

📫 How to reach me ↓

Telegram | WhatsApp | Facebook | Messenger | Youtube

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.