Sha256: d142a87c079fc4478d72bb0b9b5028f463456da68c5c49355249d1b145376693

Contents?: true

Size: 744 Bytes

Versions: 13

Compression:

Stored size: 744 Bytes

Contents

module Calabash
  module Android
    # @!visibility private
    module Orientation
      # @!visibility private
      def _set_orientation_landscape
        Device.default.perform_action('set_activity_orientation', 'landscape')
      end

      # @!visibility private
      def _set_orientation_portrait
        Device.default.perform_action('set_activity_orientation', 'portrait')
      end

      # @!visibility private
      def _portrait?
        _orientation == 'portrait'
      end

      # @!visibility private
      def _landscape?
        _orientation == 'landscape'
      end

      # @!visibility private
      def _orientation
        Device.default.perform_action('get_activity_orientation')['message']
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
calabash-2.0.0.pre10 lib/calabash/android/orientation.rb
calabash-2.0.0.pre9 lib/calabash/android/orientation.rb
calabash-2.0.0.prelegacy4 lib/calabash/android/orientation.rb
calabash-2.0.0.prelegacy3 lib/calabash/android/orientation.rb
calabash-2.0.0.prelegacy2 lib/calabash/android/orientation.rb
calabash-2.0.0.prelegacy lib/calabash/android/orientation.rb
calabash-2.0.0.pre6 lib/calabash/android/orientation.rb
calabash-2.0.0.pre5 lib/calabash/android/orientation.rb
calabash-2.0.0.pre4 lib/calabash/android/orientation.rb
calabash-2.0.0.pre3 lib/calabash/android/orientation.rb
calabash-2.0.0.pre2 lib/calabash/android/orientation.rb
calabash-2.0.0.pre1 lib/calabash/android/orientation.rb
calabash-1.9.9.pre3 lib/calabash/android/orientation.rb